summaryrefslogtreecommitdiffstats
path: root/ftdetect/polyglot.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-08-18 21:29:46 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2020-08-18 21:30:22 +0200
commit69eae22ea68523b34ba7c43f00283f3da9007fe1 (patch)
tree2c42e1210272a42a9cc1842ec1ca7d1415f8411c /ftdetect/polyglot.vim
parentf8cee0172b311d5c9b78cf7a44b8829b218cc64e (diff)
downloadvim-polyglot-69eae22ea68523b34ba7c43f00283f3da9007fe1.tar.gz
vim-polyglot-69eae22ea68523b34ba7c43f00283f3da9007fe1.zip
Let fsharp have priority over fs files, fixes #523
Diffstat (limited to 'ftdetect/polyglot.vim')
-rw-r--r--ftdetect/polyglot.vim12
1 files changed, 6 insertions, 6 deletions
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim
index 6e604622..3a843e68 100644
--- a/ftdetect/polyglot.vim
+++ b/ftdetect/polyglot.vim
@@ -267,12 +267,6 @@ if index(g:polyglot_disabled, 'flatbuffers') == -1
au BufNewFile,BufRead *.fbs set ft=fbs
endif
-if index(g:polyglot_disabled, 'fsharp') == -1
- au BufNewFile,BufRead *.fs set ft=fsharp
- au BufNewFile,BufRead *.fsi set ft=fsharp
- au BufNewFile,BufRead *.fsx set ft=fsharp
-endif
-
if index(g:polyglot_disabled, 'gdscript') == -1
au BufNewFile,BufRead *.gd set ft=gdscript3
endif
@@ -301,6 +295,12 @@ if index(g:polyglot_disabled, 'glsl') == -1
au BufNewFile,BufRead *.vshader set ft=glsl
endif
+if index(g:polyglot_disabled, 'fsharp') == -1
+ au BufNewFile,BufRead *.fs set ft=fsharp
+ au BufNewFile,BufRead *.fsi set ft=fsharp
+ au BufNewFile,BufRead *.fsx set ft=fsharp
+endif
+
if index(g:polyglot_disabled, 'git') == -1
au BufNewFile,BufRead *.gitconfig set ft=gitconfig
au BufNewFile,BufRead *.git/config set ft=gitconfig