summaryrefslogtreecommitdiffstats
path: root/ftdetect
diff options
context:
space:
mode:
Diffstat (limited to 'ftdetect')
-rw-r--r--ftdetect/polyglot.vim132
1 files changed, 66 insertions, 66 deletions
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim
index c04e099f..1448194b 100644
--- a/ftdetect/polyglot.vim
+++ b/ftdetect/polyglot.vim
@@ -73,43 +73,6 @@ augroup END
if (!exists('g:graphql_javascript_tags'))
let g:graphql_javascript_tags = ['gql', 'graphql', 'Relay.QL']
endif
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'apiblueprint') == -1
- augroup filetypedetect
- " apiblueprint, from apiblueprint.vim in sheerun/apiblueprint.vim
-autocmd BufReadPost,BufNewFile *.apib set filetype=apiblueprint
-autocmd FileType apiblueprint set syntax=apiblueprint
-autocmd FileType apiblueprint set makeprg=drafter\ -l\ %
- augroup end
-endif
-
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'applescript') == -1
- augroup filetypedetect
- " applescript, from applescript.vim in mityu/vim-applescript:_SYNTAX
-"Plugin Name: AppleScript
-"Author: mityu
-"Last Change: 04-Mar-2017.
-
-let s:cpo_save=&cpo
-set cpo&vim
-
-au BufNewFile,BufRead *.scpt setf applescript
-au BufNewFile,BufRead *.applescript setf applescript
-
-let &cpo=s:cpo_save
-unlet s:cpo_save
-
-" vim: foldmethod=marker
- augroup end
-endif
-
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'asciidoc') == -1
- augroup filetypedetect
- " asciidoc, from asciidoc.vim in asciidoc/vim-asciidoc
-autocmd BufNewFile,BufRead *.asciidoc,*.adoc
- \ set ft=asciidoc
- augroup end
-endif
-
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ansible') == -1
augroup filetypedetect
" ansible, from ansible.vim in pearofducks/ansible-vim
@@ -156,6 +119,35 @@ augroup END
augroup end
endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'apiblueprint') == -1
+ augroup filetypedetect
+ " apiblueprint, from apiblueprint.vim in sheerun/apiblueprint.vim
+autocmd BufReadPost,BufNewFile *.apib set filetype=apiblueprint
+autocmd FileType apiblueprint set syntax=apiblueprint
+autocmd FileType apiblueprint set makeprg=drafter\ -l\ %
+ augroup end
+endif
+
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'applescript') == -1
+ augroup filetypedetect
+ " applescript, from applescript.vim in mityu/vim-applescript:_SYNTAX
+"Plugin Name: AppleScript
+"Author: mityu
+"Last Change: 04-Mar-2017.
+
+let s:cpo_save=&cpo
+set cpo&vim
+
+au BufNewFile,BufRead *.scpt setf applescript
+au BufNewFile,BufRead *.applescript setf applescript
+
+let &cpo=s:cpo_save
+unlet s:cpo_save
+
+" vim: foldmethod=marker
+ augroup end
+endif
+
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'arduino') == -1
augroup filetypedetect
" arduino, from arduino.vim in sudar/vim-arduino-syntax
@@ -163,6 +155,14 @@ au BufRead,BufNewFile *.ino,*.pde set filetype=arduino
augroup end
endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'asciidoc') == -1
+ augroup filetypedetect
+ " asciidoc, from asciidoc.vim in asciidoc/vim-asciidoc
+autocmd BufNewFile,BufRead *.asciidoc,*.adoc
+ \ set ft=asciidoc
+ augroup end
+endif
+
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'blade') == -1
augroup filetypedetect
" blade, from blade.vim in jwalton512/vim-blade
@@ -201,6 +201,15 @@ autocmd BufNewFile,BufRead *.clj,*.cljs,*.edn,*.cljx,*.cljc,{build,profile}.boot
augroup end
endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cql') == -1
+ augroup filetypedetect
+ " cql, from cql.vim in elubow/cql-vim
+if has("autocmd")
+ au BufNewFile,BufRead *.cql set filetype=cql
+endif
+ augroup end
+endif
+
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cryptol') == -1
augroup filetypedetect
" cryptol, from cryptol.vim in victoredwardocallaghan/cryptol.vim
@@ -225,15 +234,6 @@ autocmd BufNewFile,BufReadPost *.ecr setlocal filetype=eruby
augroup end
endif
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cql') == -1
- augroup filetypedetect
- " cql, from cql.vim in elubow/cql-vim
-if has("autocmd")
- au BufNewFile,BufRead *.cql set filetype=cql
-endif
- augroup end
-endif
-
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cucumber') == -1
augroup filetypedetect
" cucumber, from cucumber.vim in tpope/vim-cucumber
@@ -342,13 +342,6 @@ autocmd BufNewFile,BufRead *.fs,*.fsi,*.fsx set filetype=fsharp
augroup end
endif
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'gmpl') == -1
- augroup filetypedetect
- " gmpl, from gmpl.vim in maelvalais/gmpl.vim
-au BufRead,BufNewFile *.mod set filetype=gmpl
- augroup end
-endif
-
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'glsl') == -1
augroup filetypedetect
" glsl, from glsl.vim in tikhomirov/vim-glsl
@@ -363,6 +356,13 @@ autocmd! BufNewFile,BufRead *.vert,*.tesc,*.tese,*.glsl,*.geom,*.frag,*.comp set
augroup end
endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'gmpl') == -1
+ augroup filetypedetect
+ " gmpl, from gmpl.vim in maelvalais/gmpl.vim
+au BufRead,BufNewFile *.mod set filetype=gmpl
+ augroup end
+endif
+
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'go') == -1
augroup filetypedetect
" go, from gofiletype.vim in fatih/vim-go:_BASIC
@@ -504,6 +504,13 @@ autocmd BufRead,BufNewFile *.Jenkinsfile setf Jenkinsfile
augroup end
endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'json5') == -1
+ augroup filetypedetect
+ " json5, from json5.vim in GutenYe/json5.vim
+au BufNewFile,BufRead *.json5 setfiletype json5
+ augroup end
+endif
+
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'json') == -1
augroup filetypedetect
" json, from json.vim in elzr/vim-json
@@ -515,13 +522,6 @@ autocmd BufNewFile,BufRead *.template setlocal filetype=json
augroup end
endif
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'json5') == -1
- augroup filetypedetect
- " json5, from json5.vim in GutenYe/json5.vim
-au BufNewFile,BufRead *.json5 setfiletype json5
- augroup end
-endif
-
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'jst') == -1
augroup filetypedetect
" jst, from jst.vim in briancollins/vim-jst
@@ -1200,17 +1200,17 @@ autocmd BufRead,BufNewFile *vifm/colors/* :set filetype=vifm
augroup end
endif
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'vue') == -1
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'vm') == -1
augroup filetypedetect
- " vue, from vue.vim in posva/vim-vue
-au BufNewFile,BufRead *.vue,*.wpy setf vue
+ " vm, from velocity.vim in lepture/vim-velocity
+au BufRead,BufNewFile *.vm set ft=velocity syntax=velocity
augroup end
endif
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'vm') == -1
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'vue') == -1
augroup filetypedetect
- " vm, from velocity.vim in lepture/vim-velocity
-au BufRead,BufNewFile *.vm set ft=velocity syntax=velocity
+ " vue, from vue.vim in posva/vim-vue
+au BufNewFile,BufRead *.vue,*.wpy setf vue
augroup end
endif