From 34732be5e9a5c28c2409f4490edf92d46d8b55a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wuelner=20Mart=C3=ADnez?= Date: Wed, 24 Aug 2022 19:32:48 -0600 Subject: [PATCH] fix(ftdetect): filetype is detected in vim and neovim --- CHANGELOG.md | 6 ++++++ README.md | 2 +- ftdetect/astro.vim | 10 ++-------- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b7326e0..a167e2a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.1.3] - 2022-08-24 + +### Fixed + +- Filetype is detected in all versions of Vim and Neovim. + ## [1.1.2] - 2022-08-22 ### Fixed diff --git a/README.md b/README.md index b3bcced..201f272 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,7 @@ NOTE: Vim does not provide Stylus support by default, but you can install [vim-s ## Credits -- Based on: [Evan Lecklider's](https://github.com/evanleck) [vim-svelte](https://github.com/evanleck/vim-svelte). +- Based on: Plugin [vim-svelte](https://github.com/evanleck/vim-svelte) by. [Evan Lecklider's](https://github.com/evanleck). ## License diff --git a/ftdetect/astro.vim b/ftdetect/astro.vim index 01bae18..777374b 100644 --- a/ftdetect/astro.vim +++ b/ftdetect/astro.vim @@ -3,14 +3,8 @@ " Author: Wuelner Martínez " Maintainer: Wuelner Martínez " URL: https://github.com/wuelnerdotexe/vim-astro -" Last Change: 2022 Aug 22 +" Last Change: 2022 Aug 24 " Whether to set the Astro filetype on *.astro files. -function! s:DetectFiletypeAstro() - if (&filetype ==# '') || (&filetype !=# 'astro') - setfiletype astro - endif -endfunction - -autocmd BufNewFile,BufRead *.astro call DetectFiletypeAstro() +autocmd BufNewFile,BufRead *.astro setfiletype astro " vim: ts=8