summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-05-20 17:04:22 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2020-05-20 17:04:22 +0200
commit42529540df6d80a39756d18550de82a6cee50141 (patch)
treed7561f4de1d11ef86257074cd318c66aa5f6ce4a
parenta688c66a049b12e7b19f6ab4cb27c5a24dc3d52c (diff)
downloadvim-polyglot-42529540df6d80a39756d18550de82a6cee50141.tar.gz
vim-polyglot-42529540df6d80a39756d18550de82a6cee50141.zip
Remove non-working ftplugin line, closes #485
-rwxr-xr-xbuild2
-rw-r--r--config.vim3
-rw-r--r--ftdetect/polyglot.vim12
3 files changed, 7 insertions, 10 deletions
diff --git a/build b/build
index 5746c75c..c74054c0 100755
--- a/build
+++ b/build
@@ -67,7 +67,7 @@ extract() {
output "${subdirs##, })"$'\n'
- if (echo "julia coffee-script elixir fish git plantuml scala swift jinja" | grep -qF "$name"); then
+ if (echo "julia coffee-script elixir fish git plantuml scala swift jinja fsharp" | grep -qF "$name"); then
echo "Skipping ftdetect installation of $name" >&2
continue
fi
diff --git a/config.vim b/config.vim
index 89c13c22..abb2a3b0 100644
--- a/config.vim
+++ b/config.vim
@@ -100,4 +100,7 @@ augroup filetypedetect
"jsx
au BufNewFile,BufRead *.jsx setf javascriptreact
+
+ "fsharp
+ autocmd BufNewFile,BufRead *.fs,*.fsi,*.fsx set filetype=fsharp
augroup END
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim
index 6cedcea6..315da8c6 100644
--- a/ftdetect/polyglot.vim
+++ b/ftdetect/polyglot.vim
@@ -100,6 +100,9 @@ augroup filetypedetect
"jsx
au BufNewFile,BufRead *.jsx setf javascriptreact
+
+ "fsharp
+ autocmd BufNewFile,BufRead *.fs,*.fsi,*.fsx set filetype=fsharp
augroup END
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'acpiasl') == -1
augroup filetypedetect
@@ -470,15 +473,6 @@ autocmd BufNewFile,BufRead *.fbs setfiletype fbs
augroup end
endif
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'fsharp') == -1
- augroup filetypedetect
- " fsharp, from fsharp.vim in ionide/Ionide-vim:_BASIC
-" F#, fsharp
-autocmd BufNewFile,BufRead *.fs,*.fsi,*.fsx set filetype=fsharp
-autocmd BufNewFile,BufRead *.fsproj set filetype=fsharp_project
- augroup end
-endif
-
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'gdscript') == -1
augroup filetypedetect
" gdscript, from gdscript3.vim in calviken/vim-gdscript3