mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-10 12:33:51 -05:00
Let fsharp have priority over fs files, fixes #523
This commit is contained in:
2
build.py
2
build.py
@@ -136,9 +136,9 @@ language("Ferm", extensions=[".ferm"], filenames=["ferm.conf"], filetype="ferm")
|
|||||||
language("fish")
|
language("fish")
|
||||||
language("YAML", extra_filenames=["fish_history", "fish_read_history"])
|
language("YAML", extra_filenames=["fish_history", "fish_read_history"])
|
||||||
language("Flatbuffers", extensions=[".fbs"], filetype="fbs", polyglot="flatbuffers")
|
language("Flatbuffers", extensions=[".fbs"], filetype="fbs", polyglot="flatbuffers")
|
||||||
language("F#", polyglot="fsharp", filetype="fsharp")
|
|
||||||
language("GDScript", filetype="gdscript3", polyglot="gdscript")
|
language("GDScript", filetype="gdscript3", polyglot="gdscript")
|
||||||
language("GLSL", extra_extensions=[".comp"])
|
language("GLSL", extra_extensions=[".comp"])
|
||||||
|
language("F#", polyglot="fsharp", filetype="fsharp")
|
||||||
language("Git Config", polyglot="git", filetype="gitconfig", extra_filenames=["*.git/config", "*/.config/git/config", "*.git/modules/**/config", "gitconfig"])
|
language("Git Config", polyglot="git", filetype="gitconfig", extra_filenames=["*.git/config", "*/.config/git/config", "*.git/modules/**/config", "gitconfig"])
|
||||||
language("Git Rebase", polyglot="git", filetype="gitrebase", filenames=["git-rebase-todo"])
|
language("Git Rebase", polyglot="git", filetype="gitrebase", filenames=["git-rebase-todo"])
|
||||||
language("Git Send Email", polyglot="git", filetype="gitsendemail", filenames=[".gitsendemail.*"])
|
language("Git Send Email", polyglot="git", filetype="gitsendemail", filenames=[".gitsendemail.*"])
|
||||||
|
|||||||
@@ -267,12 +267,6 @@ if index(g:polyglot_disabled, 'flatbuffers') == -1
|
|||||||
au BufNewFile,BufRead *.fbs set ft=fbs
|
au BufNewFile,BufRead *.fbs set ft=fbs
|
||||||
endif
|
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
|
if index(g:polyglot_disabled, 'gdscript') == -1
|
||||||
au BufNewFile,BufRead *.gd set ft=gdscript3
|
au BufNewFile,BufRead *.gd set ft=gdscript3
|
||||||
endif
|
endif
|
||||||
@@ -301,6 +295,12 @@ if index(g:polyglot_disabled, 'glsl') == -1
|
|||||||
au BufNewFile,BufRead *.vshader set ft=glsl
|
au BufNewFile,BufRead *.vshader set ft=glsl
|
||||||
endif
|
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
|
if index(g:polyglot_disabled, 'git') == -1
|
||||||
au BufNewFile,BufRead *.gitconfig set ft=gitconfig
|
au BufNewFile,BufRead *.gitconfig set ft=gitconfig
|
||||||
au BufNewFile,BufRead *.git/config set ft=gitconfig
|
au BufNewFile,BufRead *.git/config set ft=gitconfig
|
||||||
|
|||||||
Reference in New Issue
Block a user