From 69eae22ea68523b34ba7c43f00283f3da9007fe1 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Tue, 18 Aug 2020 21:29:46 +0200 Subject: Let fsharp have priority over fs files, fixes #523 --- ftdetect/polyglot.vim | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'ftdetect') 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 -- cgit v1.2.3