diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2020-10-25 20:33:44 +0100 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2020-10-25 20:33:44 +0100 |
commit | 45a7512dea0599efaf96e8a2cad3fac7be61cf5d (patch) | |
tree | be0f50b1fe89625021111ad0d34555ef141d4146 | |
parent | 81ada1101ecbb0bc6dbaeef42e997e62129b36cc (diff) | |
download | vim-polyglot-45a7512dea0599efaf96e8a2cad3fac7be61cf5d.tar.gz vim-polyglot-45a7512dea0599efaf96e8a2cad3fac7be61cf5d.zip |
Preserve loading order of plugins, fixes #608
1287 files changed, 1963 insertions, 1952 deletions
diff --git a/after/ftplugin/cabal.vim b/after/ftplugin/cabal.vim index 461f6a24..80757d8e 100644 --- a/after/ftplugin/cabal.vim +++ b/after/ftplugin/cabal.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('haskell', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'haskell') finish endif diff --git a/after/ftplugin/coffee.vim b/after/ftplugin/coffee.vim index a039dd95..f6a750f6 100644 --- a/after/ftplugin/coffee.vim +++ b/after/ftplugin/coffee.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('cjsx', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'cjsx') finish endif diff --git a/after/ftplugin/haskell.vim b/after/ftplugin/haskell.vim index 96ea4d04..03446e8b 100644 --- a/after/ftplugin/haskell.vim +++ b/after/ftplugin/haskell.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('haskell', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'haskell') finish endif diff --git a/after/ftplugin/html.vim b/after/ftplugin/html.vim index 6b0b48a2..ab2a8f2b 100644 --- a/after/ftplugin/html.vim +++ b/after/ftplugin/html.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('html5', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'html5') finish endif diff --git a/after/ftplugin/idris.vim b/after/ftplugin/idris.vim index 4b38f4ce..1b973639 100644 --- a/after/ftplugin/idris.vim +++ b/after/ftplugin/idris.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('idris', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'idris') finish endif diff --git a/after/ftplugin/idris2.vim b/after/ftplugin/idris2.vim index b7f25573..55a57ff2 100644 --- a/after/ftplugin/idris2.vim +++ b/after/ftplugin/idris2.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('idris2', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'idris2') finish endif diff --git a/after/ftplugin/javascript-1.vim b/after/ftplugin/javascript-1.vim index 8480c6e7..4ffa2117 100644 --- a/after/ftplugin/javascript-1.vim +++ b/after/ftplugin/javascript-1.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('javascript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'javascript') finish endif diff --git a/after/ftplugin/javascript-2.vim b/after/ftplugin/javascript-2.vim index f56dd82a..5a311439 100644 --- a/after/ftplugin/javascript-2.vim +++ b/after/ftplugin/javascript-2.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('jsx', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'jsx') finish endif diff --git a/after/ftplugin/javascriptreact.vim b/after/ftplugin/javascriptreact.vim index be2ea1fc..a757cdd7 100644 --- a/after/ftplugin/javascriptreact.vim +++ b/after/ftplugin/javascriptreact.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('jsx', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'jsx') finish endif diff --git a/after/ftplugin/jsx.vim b/after/ftplugin/jsx.vim index f6f07131..02451a80 100644 --- a/after/ftplugin/jsx.vim +++ b/after/ftplugin/jsx.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('jsx', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'jsx') finish endif diff --git a/after/ftplugin/llvm.vim b/after/ftplugin/llvm.vim index 192bf2f5..84402199 100644 --- a/after/ftplugin/llvm.vim +++ b/after/ftplugin/llvm.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('llvm', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'llvm') finish endif diff --git a/after/ftplugin/puppet.vim b/after/ftplugin/puppet.vim index 8cbc9972..64b1699b 100644 --- a/after/ftplugin/puppet.vim +++ b/after/ftplugin/puppet.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('puppet', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'puppet') finish endif diff --git a/after/ftplugin/tsx.vim b/after/ftplugin/tsx.vim index 2b35ec46..8c687fa6 100644 --- a/after/ftplugin/tsx.vim +++ b/after/ftplugin/tsx.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('jsx', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'jsx') finish endif diff --git a/after/ftplugin/typescriptreact.vim b/after/ftplugin/typescriptreact.vim index 07de9bb7..75f2e3bb 100644 --- a/after/ftplugin/typescriptreact.vim +++ b/after/ftplugin/typescriptreact.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('jsx', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'jsx') finish endif diff --git a/after/indent/html.vim b/after/indent/html.vim index 065106ca..f33b27a1 100644 --- a/after/indent/html.vim +++ b/after/indent/html.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('html5', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'html5') finish endif diff --git a/after/indent/javascript-1.vim b/after/indent/javascript-1.vim index f56dd82a..5a311439 100644 --- a/after/indent/javascript-1.vim +++ b/after/indent/javascript-1.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('jsx', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'jsx') finish endif diff --git a/after/indent/javascript-2.vim b/after/indent/javascript-2.vim index 24d29703..3177c0cb 100644 --- a/after/indent/javascript-2.vim +++ b/after/indent/javascript-2.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('graphql', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'graphql') finish endif diff --git a/after/indent/javascriptreact.vim b/after/indent/javascriptreact.vim index be2ea1fc..a757cdd7 100644 --- a/after/indent/javascriptreact.vim +++ b/after/indent/javascriptreact.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('jsx', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'jsx') finish endif diff --git a/after/indent/jsx.vim b/after/indent/jsx.vim index 394f20b7..1ba02c46 100644 --- a/after/indent/jsx.vim +++ b/after/indent/jsx.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('jsx', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'jsx') finish endif diff --git a/after/indent/objc.vim b/after/indent/objc.vim index ee644861..13d4d32d 100644 --- a/after/indent/objc.vim +++ b/after/indent/objc.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('objc', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'objc') finish endif diff --git a/after/indent/tsx.vim b/after/indent/tsx.vim index 544568a7..f29ccbaf 100644 --- a/after/indent/tsx.vim +++ b/after/indent/tsx.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('jsx', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'jsx') finish endif diff --git a/after/indent/typescript.vim b/after/indent/typescript.vim index 8f0172c1..1294bc59 100644 --- a/after/indent/typescript.vim +++ b/after/indent/typescript.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('graphql', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'graphql') finish endif diff --git a/after/indent/typescriptreact.vim b/after/indent/typescriptreact.vim index 07de9bb7..75f2e3bb 100644 --- a/after/indent/typescriptreact.vim +++ b/after/indent/typescriptreact.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('jsx', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'jsx') finish endif diff --git a/after/syntax/c.vim b/after/syntax/c.vim index d0478e01..10497670 100644 --- a/after/syntax/c.vim +++ b/after/syntax/c.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('cpp-modern', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'cpp-modern') finish endif diff --git a/after/syntax/coffee.vim b/after/syntax/coffee.vim index 9b9f38a3..debd9aa9 100644 --- a/after/syntax/coffee.vim +++ b/after/syntax/coffee.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('cjsx', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'cjsx') finish endif diff --git a/after/syntax/cpp.vim b/after/syntax/cpp.vim index b59b9859..517404f0 100644 --- a/after/syntax/cpp.vim +++ b/after/syntax/cpp.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('cpp-modern', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'cpp-modern') finish endif diff --git a/after/syntax/haskell.vim b/after/syntax/haskell.vim index e109b2d7..61d828d2 100644 --- a/after/syntax/haskell.vim +++ b/after/syntax/haskell.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('dhall', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'dhall') finish endif diff --git a/after/syntax/help.vim b/after/syntax/help.vim index a43546cf..0ee4a9ca 100644 --- a/after/syntax/help.vim +++ b/after/syntax/help.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('scala', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'scala') finish endif diff --git a/after/syntax/html.vim b/after/syntax/html.vim index 8bdc0b0f..56ba064c 100644 --- a/after/syntax/html.vim +++ b/after/syntax/html.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('html5', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'html5') finish endif diff --git a/after/syntax/html/aria.vim b/after/syntax/html/aria.vim index 9e457bff..ed5a8383 100644 --- a/after/syntax/html/aria.vim +++ b/after/syntax/html/aria.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('html5', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'html5') finish endif diff --git a/after/syntax/html/electron.vim b/after/syntax/html/electron.vim index 636e810d..d7bfa90f 100644 --- a/after/syntax/html/electron.vim +++ b/after/syntax/html/electron.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('html5', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'html5') finish endif diff --git a/after/syntax/html/rdfa.vim b/after/syntax/html/rdfa.vim index ec7d714b..529c2fcd 100644 --- a/after/syntax/html/rdfa.vim +++ b/after/syntax/html/rdfa.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('html5', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'html5') finish endif diff --git a/after/syntax/idris.vim b/after/syntax/idris.vim index 01f5000e..18a31e8a 100644 --- a/after/syntax/idris.vim +++ b/after/syntax/idris.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('idris', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'idris') finish endif diff --git a/after/syntax/idris2.vim b/after/syntax/idris2.vim index 279e5875..6371b937 100644 --- a/after/syntax/idris2.vim +++ b/after/syntax/idris2.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('idris2', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'idris2') finish endif diff --git a/after/syntax/javascript.vim b/after/syntax/javascript.vim index f56dd82a..5a311439 100644 --- a/after/syntax/javascript.vim +++ b/after/syntax/javascript.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('jsx', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'jsx') finish endif diff --git a/after/syntax/javascript/graphql.vim b/after/syntax/javascript/graphql.vim index c0c73742..6044d6ae 100644 --- a/after/syntax/javascript/graphql.vim +++ b/after/syntax/javascript/graphql.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('graphql', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'graphql') finish endif diff --git a/after/syntax/javascript/html5.vim b/after/syntax/javascript/html5.vim index eaeaccb5..683202d1 100644 --- a/after/syntax/javascript/html5.vim +++ b/after/syntax/javascript/html5.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('html5', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'html5') finish endif diff --git a/after/syntax/javascript/sql.vim b/after/syntax/javascript/sql.vim index 58e23b56..f4feb758 100644 --- a/after/syntax/javascript/sql.vim +++ b/after/syntax/javascript/sql.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('javascript-sql', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'javascript-sql') finish endif diff --git a/after/syntax/javascriptreact.vim b/after/syntax/javascriptreact.vim index be2ea1fc..a757cdd7 100644 --- a/after/syntax/javascriptreact.vim +++ b/after/syntax/javascriptreact.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('jsx', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'jsx') finish endif diff --git a/after/syntax/javascriptreact/graphql.vim b/after/syntax/javascriptreact/graphql.vim index 52628a1a..308c17d7 100644 --- a/after/syntax/javascriptreact/graphql.vim +++ b/after/syntax/javascriptreact/graphql.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('graphql', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'graphql') finish endif diff --git a/after/syntax/jsx.vim b/after/syntax/jsx.vim index 0a7a7e1e..c8b8aa5d 100644 --- a/after/syntax/jsx.vim +++ b/after/syntax/jsx.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('jsx', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'jsx') finish endif diff --git a/after/syntax/jsx_pretty.vim b/after/syntax/jsx_pretty.vim index f05969c5..a6cb8a90 100644 --- a/after/syntax/jsx_pretty.vim +++ b/after/syntax/jsx_pretty.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('jsx', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'jsx') finish endif diff --git a/after/syntax/llvm.vim b/after/syntax/llvm.vim index 6f3daebf..e38d5041 100644 --- a/after/syntax/llvm.vim +++ b/after/syntax/llvm.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('llvm', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'llvm') finish endif diff --git a/after/syntax/mdx.vim b/after/syntax/mdx.vim index 6fd7b963..26ebf198 100644 --- a/after/syntax/mdx.vim +++ b/after/syntax/mdx.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('mdx', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'mdx') finish endif diff --git a/after/syntax/mma.vim b/after/syntax/mma.vim index 24d99755..2509d210 100644 --- a/after/syntax/mma.vim +++ b/after/syntax/mma.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('mathematica', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'mathematica') finish endif diff --git a/after/syntax/objc.vim b/after/syntax/objc.vim index 0541758d..78e41fd1 100644 --- a/after/syntax/objc.vim +++ b/after/syntax/objc.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('objc', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'objc') finish endif diff --git a/after/syntax/reason.vim b/after/syntax/reason.vim index f608bde1..0df633cb 100644 --- a/after/syntax/reason.vim +++ b/after/syntax/reason.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('reason', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'reason') finish endif diff --git a/after/syntax/reason/graphql.vim b/after/syntax/reason/graphql.vim index 00fe9b5d..2a54c402 100644 --- a/after/syntax/reason/graphql.vim +++ b/after/syntax/reason/graphql.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('graphql', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'graphql') finish endif diff --git a/after/syntax/rspec.vim b/after/syntax/rspec.vim index 99905ddd..355fe524 100644 --- a/after/syntax/rspec.vim +++ b/after/syntax/rspec.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('rspec', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'rspec') finish endif diff --git a/after/syntax/ruby.vim b/after/syntax/ruby.vim index e57c1d70..dea6003a 100644 --- a/after/syntax/ruby.vim +++ b/after/syntax/ruby.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('yard', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'yard') finish endif diff --git a/after/syntax/rust.vim b/after/syntax/rust.vim index bf17e031..638c6dd8 100644 --- a/after/syntax/rust.vim +++ b/after/syntax/rust.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('rust', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'rust') finish endif diff --git a/after/syntax/tsx.vim b/after/syntax/tsx.vim index d400f410..f3b43635 100644 --- a/after/syntax/tsx.vim +++ b/after/syntax/tsx.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('jsx', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'jsx') finish endif diff --git a/after/syntax/typescript/graphql.vim b/after/syntax/typescript/graphql.vim index 40425b89..cccdbc3e 100644 --- a/after/syntax/typescript/graphql.vim +++ b/after/syntax/typescript/graphql.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('graphql', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'graphql') finish endif diff --git a/after/syntax/typescriptreact.vim b/after/syntax/typescriptreact.vim index 07de9bb7..75f2e3bb 100644 --- a/after/syntax/typescriptreact.vim +++ b/after/syntax/typescriptreact.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('jsx', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'jsx') finish endif diff --git a/after/syntax/typescriptreact/graphql.vim b/after/syntax/typescriptreact/graphql.vim index f9e7151f..aa60a3aa 100644 --- a/after/syntax/typescriptreact/graphql.vim +++ b/after/syntax/typescriptreact/graphql.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('graphql', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'graphql') finish endif diff --git a/after/syntax/vue/graphql.vim b/after/syntax/vue/graphql.vim index 52628a1a..308c17d7 100644 --- a/after/syntax/vue/graphql.vim +++ b/after/syntax/vue/graphql.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('graphql', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'graphql') finish endif diff --git a/after/syntax/zsh.vim b/after/syntax/zsh.vim index 5e9ff75c..fc63d3c5 100644 --- a/after/syntax/zsh.vim +++ b/after/syntax/zsh.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('zinit', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'zinit') finish endif diff --git a/autoload/LaTeXtoUnicode.vim b/autoload/LaTeXtoUnicode.vim index bf0c7cc2..250d001a 100644 --- a/autoload/LaTeXtoUnicode.vim +++ b/autoload/LaTeXtoUnicode.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('julia', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'julia') finish endif diff --git a/autoload/RstFold.vim b/autoload/RstFold.vim index f340565b..2907bc80 100644 --- a/autoload/RstFold.vim +++ b/autoload/RstFold.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('rst', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'rst') finish endif diff --git a/autoload/ada.vim b/autoload/ada.vim index e54d05e2..207b3d07 100644 --- a/autoload/ada.vim +++ b/autoload/ada.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ada', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ada') finish endif diff --git a/autoload/cargo.vim b/autoload/cargo.vim index 232dca79..64caa2e2 100644 --- a/autoload/cargo.vim +++ b/autoload/cargo.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('rust', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'rust') finish endif diff --git a/autoload/cargo/quickfix.vim b/autoload/cargo/quickfix.vim index 536e09e8..2cd41aa0 100644 --- a/autoload/cargo/quickfix.vim +++ b/autoload/cargo/quickfix.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('rust', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'rust') finish endif diff --git a/autoload/clojurecomplete.vim b/autoload/clojurecomplete.vim index ebecd5cd..9b724f38 100644 --- a/autoload/clojurecomplete.vim +++ b/autoload/clojurecomplete.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('clojure', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'clojure') finish endif diff --git a/autoload/coffee.vim b/autoload/coffee.vim index 12ea3f97..b792182c 100644 --- a/autoload/coffee.vim +++ b/autoload/coffee.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('coffee-script', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'coffee-script') finish endif diff --git a/autoload/crystal/indent.vim b/autoload/crystal/indent.vim index 48887469..cb40350f 100644 --- a/autoload/crystal/indent.vim +++ b/autoload/crystal/indent.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('crystal', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'crystal') finish endif diff --git a/autoload/crystal_lang.vim b/autoload/crystal_lang.vim index 87060a64..911bb241 100644 --- a/autoload/crystal_lang.vim +++ b/autoload/crystal_lang.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('crystal', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'crystal') finish endif diff --git a/autoload/csv.vim b/autoload/csv.vim index 20b51923..72402ce7 100644 --- a/autoload/csv.vim +++ b/autoload/csv.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('csv', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'csv') finish endif diff --git a/autoload/dart.vim b/autoload/dart.vim index 1e2c0e07..308f68f3 100644 --- a/autoload/dart.vim +++ b/autoload/dart.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('dart', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'dart') finish endif diff --git a/autoload/db/adapter/ecto.vim b/autoload/db/adapter/ecto.vim index af5da6ae..b2179ab1 100644 --- a/autoload/db/adapter/ecto.vim +++ b/autoload/db/adapter/ecto.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('elixir', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'elixir') finish endif diff --git a/autoload/ecrystal.vim b/autoload/ecrystal.vim index 43a49edd..c8679dec 100644 --- a/autoload/ecrystal.vim +++ b/autoload/ecrystal.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('crystal', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'crystal') finish endif diff --git a/autoload/elixir/indent.vim b/autoload/elixir/indent.vim index 7286de16..d21cceb3 100644 --- a/autoload/elixir/indent.vim +++ b/autoload/elixir/indent.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('elixir', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'elixir') finish endif diff --git a/autoload/elixir/util.vim b/autoload/elixir/util.vim index e5c660f3..04d62b7d 100644 --- a/autoload/elixir/util.vim +++ b/autoload/elixir/util.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('elixir', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'elixir') finish endif diff --git a/autoload/fish.vim b/autoload/fish.vim index c9b498a8..e792f9a8 100644 --- a/autoload/fish.vim +++ b/autoload/fish.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('fish', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'fish') finish endif diff --git a/autoload/fsharp.vim b/autoload/fsharp.vim index 525952ba..e53bc68b 100644 --- a/autoload/fsharp.vim +++ b/autoload/fsharp.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('fsharp', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'fsharp') finish endif diff --git a/autoload/fzf_gitignore.vim b/autoload/fzf_gitignore.vim index f7914f24..c3426aa4 100644 --- a/autoload/fzf_gitignore.vim +++ b/autoload/fzf_gitignore.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('gitignore', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'gitignore') finish endif diff --git a/autoload/go/config.vim b/autoload/go/config.vim index d11bc8d9..03b6c279 100644 --- a/autoload/go/config.vim +++ b/autoload/go/config.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('go', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'go') finish endif diff --git a/autoload/graphql.vim b/autoload/graphql.vim index b92751bb..bfb87910 100644 --- a/autoload/graphql.vim +++ b/autoload/graphql.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('graphql', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'graphql') finish endif diff --git a/autoload/htmlcomplete.vim b/autoload/htmlcomplete.vim index 5b1b4ac5..bc124ac6 100644 --- a/autoload/htmlcomplete.vim +++ b/autoload/htmlcomplete.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('html5', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'html5') finish endif diff --git a/autoload/jsonnet.vim b/autoload/jsonnet.vim index b9386463..b5303868 100644 --- a/autoload/jsonnet.vim +++ b/autoload/jsonnet.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('jsonnet', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'jsonnet') finish endif diff --git a/autoload/jsx_pretty/comment.vim b/autoload/jsx_pretty/comment.vim index 44dbf803..3f31ded8 100644 --- a/autoload/jsx_pretty/comment.vim +++ b/autoload/jsx_pretty/comment.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('jsx', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'jsx') finish endif diff --git a/autoload/jsx_pretty/indent.vim b/autoload/jsx_pretty/indent.vim index 3c5585a8..d425dd38 100644 --- a/autoload/jsx_pretty/indent.vim +++ b/autoload/jsx_pretty/indent.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('jsx', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'jsx') finish endif diff --git a/autoload/julia.vim b/autoload/julia.vim index e747028a..fbec59d7 100644 --- a/autoload/julia.vim +++ b/autoload/julia.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('julia', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'julia') finish endif diff --git a/autoload/julia/doc.vim b/autoload/julia/doc.vim index 258c0064..c683d5cd 100644 --- a/autoload/julia/doc.vim +++ b/autoload/julia/doc.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('julia', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'julia') finish endif diff --git a/autoload/julia_blocks.vim b/autoload/julia_blocks.vim index 6be2ba79..3ac07914 100644 --- a/autoload/julia_blocks.vim +++ b/autoload/julia_blocks.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('julia', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'julia') finish endif diff --git a/autoload/julia_latex_symbols.vim b/autoload/julia_latex_symbols.vim index 7f6fe007..425b8603 100644 --- a/autoload/julia_latex_symbols.vim +++ b/autoload/julia_latex_symbols.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('julia', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'julia') finish endif diff --git a/autoload/ledger.vim b/autoload/ledger.vim index 5b3f2203..45246331 100644 --- a/autoload/ledger.vim +++ b/autoload/ledger.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ledger', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ledger') finish endif diff --git a/autoload/nim.vim b/autoload/nim.vim index 7bdfa867..c913af99 100644 --- a/autoload/nim.vim +++ b/autoload/nim.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('nim', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'nim') finish endif diff --git a/autoload/polyglot/util.vim b/autoload/polyglot/util.vim deleted file mode 100644 index f0fd0388..00000000 --- a/autoload/polyglot/util.vim +++ /dev/null @@ -1,64 +0,0 @@ -" Restore 'cpoptions' -let s:cpo_save = &cpo -set cpo&vim - -let s:disabled_packages = {} -let s:new_polyglot_disabled = [] - -if exists('g:polyglot_disabled') - for pkg in g:polyglot_disabled - let base = split(pkg, '\.') - if len(base) > 0 - let s:disabled_packages[pkg] = 1 - call add(s:new_polyglot_disabled, base[0]) - endif - endfor -else - let g:polyglot_disabled_not_set = 1 -endif - - -let s:base = expand('<sfile>:p:h:h:h') - -func polyglot#util#Filter(idx, val) - let val = fnamemodify(a:val . '/', ':p:h') - return resolve(val) !=? s:base && stridx(val, $VIMRUNTIME) == -1 && val !~? '[/\\]after$' -endfunc - -let s:rtp = join(filter(split(&rtp, ','), function('polyglot#util#Filter')), ',') - -func polyglot#util#IsEnabled(type, file) - if a:file != "ftdetect" - let file = a:file[len(s:base) + 1:] - let files = globpath(s:rtp, file, 1, 1) - if !empty(files) - exec 'source' files[0] - return 0 - endif - endif - if a:type == "jsx" - return !has_key(s:disabled_packages, "jsx") && !has_key(s:disabled_packages, "javascript") - endif - return !has_key(s:disabled_packages, a:type) -endfunc - -func! polyglot#util#Verify() - if exists("g:polyglot_disabled_not_set") - if exists("g:polyglot_disabled") - echohl WarningMsg - echo "vim-polyglot: g:polyglot_disabled should be defined before loading vim-polyglot" - echohl None - endif - - unlet g:polyglot_disabled_not_set - endif -endfunc - -" Save polyglot_disabled without postfixes -if exists('g:polyglot_disabled') - let g:polyglot_disabled = s:new_polyglot_disabled -endif - -" Restore 'cpoptions' -let &cpo = s:cpo_save -unlet s:cpo_save diff --git a/autoload/pony.vim b/autoload/pony.vim index 78386b6b..d24bbd23 100644 --- a/autoload/pony.vim +++ b/autoload/pony.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('pony', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'pony') finish endif diff --git a/autoload/puppet/align.vim b/autoload/puppet/align.vim index 51254120..d9af9bd3 100644 --- a/autoload/puppet/align.vim +++ b/autoload/puppet/align.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('puppet', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'puppet') finish endif diff --git a/autoload/puppet/ctags.vim b/autoload/puppet/ctags.vim index a1d1577a..6e296b96 100644 --- a/autoload/puppet/ctags.vim +++ b/autoload/puppet/ctags.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('puppet', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'puppet') finish endif diff --git a/autoload/puppet/format.vim b/autoload/puppet/format.vim index 96b447b6..f0805363 100644 --- a/autoload/puppet/format.vim +++ b/autoload/puppet/format.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('puppet', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'puppet') finish endif diff --git a/autoload/python/utils.vim b/autoload/python/utils.vim index 4517f00d..7782add1 100644 --- a/autoload/python/utils.vim +++ b/autoload/python/utils.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('python-compiler', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'python-compiler') finish endif diff --git a/autoload/requirements.vim b/autoload/requirements.vim index ad2e747a..e222ce2f 100644 --- a/autoload/requirements.vim +++ b/autoload/requirements.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('requirements', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'requirements') finish endif diff --git a/autoload/rubycomplete.vim b/autoload/rubycomplete.vim index 9551c965..d25c23b6 100644 --- a/autoload/rubycomplete.vim +++ b/autoload/rubycomplete.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ruby', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ruby') finish endif diff --git a/autoload/rust.vim b/autoload/rust.vim index a8f5bfa3..6c6fbe13 100644 --- a/autoload/rust.vim +++ b/autoload/rust.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('rust', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'rust') finish endif diff --git a/autoload/rust/debugging.vim b/autoload/rust/debugging.vim index 9096333b..d200e9fc 100644 --- a/autoload/rust/debugging.vim +++ b/autoload/rust/debugging.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('rust', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'rust') finish endif diff --git a/autoload/rust/delimitmate.vim b/autoload/rust/delimitmate.vim index 7d2d1817..25735f9c 100644 --- a/autoload/rust/delimitmate.vim +++ b/autoload/rust/delimitmate.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('rust', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'rust') finish endif diff --git a/autoload/rust/tags.vim b/autoload/rust/tags.vim index 8ffa4d51..1acbb5bb 100644 --- a/autoload/rust/tags.vim +++ b/autoload/rust/tags.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('rust', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'rust') finish endif diff --git a/autoload/rustfmt.vim b/autoload/rustfmt.vim index 81ebe56e..1d6f91ed 100644 --- a/autoload/rustfmt.vim +++ b/autoload/rustfmt.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('rust', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'rust') finish endif diff --git a/autoload/smt2.vim b/autoload/smt2.vim index 0d328529..85bd6218 100644 --- a/autoload/smt2.vim +++ b/autoload/smt2.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('smt2', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'smt2') finish endif diff --git a/autoload/terraform.vim b/autoload/terraform.vim index 7c4e33da..e3a7908f 100644 --- a/autoload/terraform.vim +++ b/autoload/terraform.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('terraform', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'terraform') finish endif diff --git a/autoload/vital/_crystal.vim b/autoload/vital/_crystal.vim index b328af90..c93828a2 100644 --- a/autoload/vital/_crystal.vim +++ b/autoload/vital/_crystal.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('crystal', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'crystal') finish endif diff --git a/autoload/vital/_crystal/ColorEcho.vim b/autoload/vital/_crystal/ColorEcho.vim index 7180dce6..61e22f17 100644 --- a/autoload/vital/_crystal/ColorEcho.vim +++ b/autoload/vital/_crystal/ColorEcho.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('crystal', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'crystal') finish endif diff --git a/autoload/vital/_crystal/Data/List.vim b/autoload/vital/_crystal/Data/List.vim index 68f87490..0af74f78 100644 --- a/autoload/vital/_crystal/Data/List.vim +++ b/autoload/vital/_crystal/Data/List.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('crystal', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'crystal') finish endif diff --git a/autoload/vital/_crystal/Data/String.vim b/autoload/vital/_crystal/Data/String.vim index 67cd217c..66d58ae0 100644 --- a/autoload/vital/_crystal/Data/String.vim +++ b/autoload/vital/_crystal/Data/String.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('crystal', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'crystal') finish endif diff --git a/autoload/vital/_crystal/Process.vim b/autoload/vital/_crystal/Process.vim index 2da1a016..31b6b890 100644 --- a/autoload/vital/_crystal/Process.vim +++ b/autoload/vital/_crystal/Process.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('crystal', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'crystal') finish endif diff --git a/autoload/vital/_crystal/Web/JSON.vim b/autoload/vital/_crystal/Web/JSON.vim index a1d01238..bcf96f85 100644 --- a/autoload/vital/_crystal/Web/JSON.vim +++ b/autoload/vital/_crystal/Web/JSON.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('crystal', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'crystal') finish endif diff --git a/autoload/vital/crystal.vim b/autoload/vital/crystal.vim index 68938d83..a73b19ba 100644 --- a/autoload/vital/crystal.vim +++ b/autoload/vital/crystal.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('crystal', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'crystal') finish endif diff --git a/autoload/xml/aria.vim b/autoload/xml/aria.vim index 7a106e0a..f4d0d4d6 100644 --- a/autoload/xml/aria.vim +++ b/autoload/xml/aria.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('html5', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'html5') finish endif diff --git a/autoload/xml/html5.vim b/autoload/xml/html5.vim index a88808e0..c2a78b6e 100644 --- a/autoload/xml/html5.vim +++ b/autoload/xml/html5.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('html5', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'html5') finish endif diff --git a/autoload/xml/xsd.vim b/autoload/xml/xsd.vim index 71b0ec89..478003f9 100644 --- a/autoload/xml/xsd.vim +++ b/autoload/xml/xsd.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('xsd', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'xsd') finish endif diff --git a/autoload/zig/config.vim b/autoload/zig/config.vim index ed373f56..76f2939c 100644 --- a/autoload/zig/config.vim +++ b/autoload/zig/config.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('zig', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'zig') finish endif diff --git a/autoload/zig/fmt.vim b/autoload/zig/fmt.vim index bdc21290..dd01a44b 100644 --- a/autoload/zig/fmt.vim +++ b/autoload/zig/fmt.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('zig', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'zig') finish endif diff --git a/autoload/zig/list.vim b/autoload/zig/list.vim index d09dd76e..083e336b 100644 --- a/autoload/zig/list.vim +++ b/autoload/zig/list.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('zig', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'zig') finish endif diff --git a/autoload/zig/util.vim b/autoload/zig/util.vim index baa2d32c..3c7e8b61 100644 --- a/autoload/zig/util.vim +++ b/autoload/zig/util.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('zig', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'zig') finish endif diff --git a/compiler/ant.vim b/compiler/ant.vim index 8d1b66fb..1f927dbc 100644 --- a/compiler/ant.vim +++ b/compiler/ant.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ant', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ant') finish endif diff --git a/compiler/bdf.vim b/compiler/bdf.vim index 097d6b00..79fb2663 100644 --- a/compiler/bdf.vim +++ b/compiler/bdf.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('bdf', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'bdf') finish endif diff --git a/compiler/cake.vim b/compiler/cake.vim index 993bf1cf..c053759a 100644 --- a/compiler/cake.vim +++ b/compiler/cake.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('coffee-script', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'coffee-script') finish endif diff --git a/compiler/cargo.vim b/compiler/cargo.vim index 92569939..4854e4d9 100644 --- a/compiler/cargo.vim +++ b/compiler/cargo.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('rust', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'rust') finish endif diff --git a/compiler/coffee.vim b/compiler/coffee.vim index c5dcce7f..e16c425d 100644 --- a/compiler/coffee.vim +++ b/compiler/coffee.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('coffee-script', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'coffee-script') finish endif diff --git a/compiler/credo.vim b/compiler/credo.vim index e39c6b7c..767452c7 100644 --- a/compiler/credo.vim +++ b/compiler/credo.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('elixir', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'elixir') finish endif diff --git a/compiler/cryptol.vim b/compiler/cryptol.vim index 062109ac..7454ad5d 100644 --- a/compiler/cryptol.vim +++ b/compiler/cryptol.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('cryptol', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'cryptol') finish endif diff --git a/compiler/cs.vim b/compiler/cs.vim index 195887cf..195f1437 100644 --- a/compiler/cs.vim +++ b/compiler/cs.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('cs', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'cs') finish endif diff --git a/compiler/cucumber.vim b/compiler/cucumber.vim index a41c0de4..b2aef45d 100644 --- a/compiler/cucumber.vim +++ b/compiler/cucumber.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('cucumber', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'cucumber') finish endif diff --git a/compiler/dot.vim b/compiler/dot.vim index 5002e5ff..f2d65967 100644 --- a/compiler/dot.vim +++ b/compiler/dot.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('dot', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'dot') finish endif diff --git a/compiler/eruby.vim b/compiler/eruby.vim index dd006baa..426a8212 100644 --- a/compiler/eruby.vim +++ b/compiler/eruby.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ruby', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ruby') finish endif diff --git a/compiler/exunit.vim b/compiler/exunit.vim index 2a52eff8..7f9bf656 100644 --- a/compiler/exunit.vim +++ b/compiler/exunit.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('elixir', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'elixir') finish endif diff --git a/compiler/fish.vim b/compiler/fish.vim index 1ae935f8..8ab152a6 100644 --- a/compiler/fish.vim +++ b/compiler/fish.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('fish', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'fish') finish endif diff --git a/compiler/go.vim b/compiler/go.vim index fba6a94f..c01c9e52 100644 --- a/compiler/go.vim +++ b/compiler/go.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('go', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'go') finish endif diff --git a/compiler/gradle.vim b/compiler/gradle.vim index 7790daac..1f59118e 100644 --- a/compiler/gradle.vim +++ b/compiler/gradle.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('gradle', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'gradle') finish endif diff --git a/compiler/gradlew.vim b/compiler/gradlew.vim index 68f23d76..82fdbdd8 100644 --- a/compiler/gradlew.vim +++ b/compiler/gradlew.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('gradle', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'gradle') finish endif diff --git a/compiler/haml.vim b/compiler/haml.vim index 08a64bc5..b72ab353 100644 --- a/compiler/haml.vim +++ b/compiler/haml.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('haml', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'haml') finish endif diff --git a/compiler/ledger.vim b/compiler/ledger.vim index e0220582..49eb3750 100644 --- a/compiler/ledger.vim +++ b/compiler/ledger.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ledger', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ledger') finish endif diff --git a/compiler/lilypond.vim b/compiler/lilypond.vim index cbe15bbb..6e7dd94f 100644 --- a/compiler/lilypond.vim +++ b/compiler/lilypond.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('lilypond', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'lilypond') finish endif diff --git a/compiler/ls.vim b/compiler/ls.vim index 69c6977f..b937052c 100644 --- a/compiler/ls.vim +++ b/compiler/ls.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('livescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'livescript') finish endif diff --git a/compiler/mix.vim b/compiler/mix.vim index e9e781c5..dfbf004b 100644 --- a/compiler/mix.vim +++ b/compiler/mix.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('elixir', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'elixir') finish endif diff --git a/compiler/nim.vim b/compiler/nim.vim index e7ed6936..51035070 100644 --- a/compiler/nim.vim +++ b/compiler/nim.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('nim', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'nim') finish endif diff --git a/compiler/nix-build.vim b/compiler/nix-build.vim index 89a2453b..aa8932c1 100644 --- a/compiler/nix-build.vim +++ b/compiler/nix-build.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('nix', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'nix') finish endif diff --git a/compiler/ocaml.vim b/compiler/ocaml.vim index 92582d67..00cc30f4 100644 --- a/compiler/ocaml.vim +++ b/compiler/ocaml.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ocaml', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ocaml') finish endif diff --git a/compiler/powershell.vim b/compiler/powershell.vim index e4d5d410..43682955 100644 --- a/compiler/powershell.vim +++ b/compiler/powershell.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('powershell', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'powershell') finish endif diff --git a/compiler/python.vim b/compiler/python.vim index 670ebdb4..29e9acb8 100644 --- a/compiler/python.vim +++ b/compiler/python.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('python-compiler', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'python-compiler') finish endif diff --git a/compiler/rake.vim b/compiler/rake.vim index f8c3186c..4843c55d 100644 --- a/compiler/rake.vim +++ b/compiler/rake.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ruby', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ruby') finish endif diff --git a/compiler/rspec.vim b/compiler/rspec.vim index c443c735..541e2f62 100644 --- a/compiler/rspec.vim +++ b/compiler/rspec.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ruby', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ruby') finish endif diff --git a/compiler/ruby.vim b/compiler/ruby.vim index 53dc0106..9ec9a226 100644 --- a/compiler/ruby.vim +++ b/compiler/ruby.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ruby', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ruby') finish endif diff --git a/compiler/rubyunit.vim b/compiler/rubyunit.vim index eb6c3d8e..11c8276c 100644 --- a/compiler/rubyunit.vim +++ b/compiler/rubyunit.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ruby', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ruby') finish endif diff --git a/compiler/rustc.vim b/compiler/rustc.vim index 66827050..80091673 100644 --- a/compiler/rustc.vim +++ b/compiler/rustc.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('rust', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'rust') finish endif diff --git a/compiler/sass.vim b/compiler/sass.vim index 5a1ee532..852d3e09 100644 --- a/compiler/sass.vim +++ b/compiler/sass.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('sass', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'sass') finish endif diff --git a/compiler/sbt.vim b/compiler/sbt.vim index 15f81ff3..24fc2d09 100644 --- a/compiler/sbt.vim +++ b/compiler/sbt.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('scala', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'scala') finish endif diff --git a/compiler/swift.vim b/compiler/swift.vim index 39dbe99a..c89bfe5a 100644 --- a/compiler/swift.vim +++ b/compiler/swift.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('swift', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'swift') finish endif diff --git a/compiler/tcl.vim b/compiler/tcl.vim index c73d69d5..3cdf8249 100644 --- a/compiler/tcl.vim +++ b/compiler/tcl.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('tcl', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'tcl') finish endif diff --git a/compiler/tex.vim b/compiler/tex.vim index 7076d04a..497b5877 100644 --- a/compiler/tex.vim +++ b/compiler/tex.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('tex', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'tex') finish endif diff --git a/compiler/tidy.vim b/compiler/tidy.vim index 7f7f12af..0c635fb8 100644 --- a/compiler/tidy.vim +++ b/compiler/tidy.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('tidy', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'tidy') finish endif diff --git a/compiler/typescript.vim b/compiler/typescript.vim index d004226c..4910a95e 100644 --- a/compiler/typescript.vim +++ b/compiler/typescript.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/extras/flow.vim b/extras/flow.vim index 69823efe..e13bdeaa 100644 --- a/extras/flow.vim +++ b/extras/flow.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('javascript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'javascript') finish endif diff --git a/extras/jsdoc.vim b/extras/jsdoc.vim index 4a71cc66..7e6f2b55 100644 --- a/extras/jsdoc.vim +++ b/extras/jsdoc.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('javascript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'javascript') finish endif diff --git a/extras/ngdoc.vim b/extras/ngdoc.vim index 9936387b..46102a7d 100644 --- a/extras/ngdoc.vim +++ b/extras/ngdoc.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('javascript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'javascript') finish endif diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim index d259dc27..19d459ca 100644 --- a/ftdetect/polyglot.vim +++ b/ftdetect/polyglot.vim @@ -8,7 +8,6 @@ if exists("did_load_polyglot") finish endif - let did_load_polyglot = 1 " Switch to compatible mode for the time being @@ -20,6 +19,35 @@ if exists("did_load_filetypes") au! filetypedetect endif +let g:polyglot_is_disabled = {} +let s:new_polyglot_disabled = [] + +if exists('g:polyglot_disabled') + for pkg in g:polyglot_disabled + let base = split(pkg, '\.') + if len(base) > 0 + let g:polyglot_is_disabled[pkg] = 1 + call add(s:new_polyglot_disabled, base[0]) + endif + endfor +else + let g:polyglot_disabled_not_set = 1 +endif + +func! PolyglotVerify() + if exists("g:polyglot_disabled_not_set") + if exists("g:polyglot_disabled") + echohl WarningMsg + echo "vim-polyglot: g:polyglot_disabled should be defined before loading vim-polyglot" + echohl None + endif + + unlet g:polyglot_disabled_not_set + endif +endfun + +au VimEnter * call PolyglotVerify() + " Prevent filetype.vim of vim from loading again let did_load_filetypes = 1 @@ -92,766 +120,769 @@ endfunc augroup polyglot-observer | augroup END -augroup filetypedetect - " Load user-defined filetype.vim and oter plugins ftdetect first " This is to use polyglot-defined ftdetect always as fallback to user settings -runtime! filetype.vim -runtime! ftdetect/*.vim +augroup filetypedetect + runtime! filetype.vim + runtime! ftdetect/*.vim +augroup END + + +augroup filetypedetect " DO NOT EDIT CODE BELOW, IT IS GENERATED WITH MAKEFILE -if polyglot#util#IsEnabled('context', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'context') au BufNewFile,BufRead *.mkii,*.mkiv,*.mkvi setf context endif -if polyglot#util#IsEnabled('xpm2', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'xpm2') au BufNewFile,BufRead *.xpm2 setf xpm2 endif -if polyglot#util#IsEnabled('xpm', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'xpm') au BufNewFile,BufRead,BufWritePost *.pm call polyglot#detect#Pm() au BufNewFile,BufRead *.xpm setf xpm endif -if polyglot#util#IsEnabled('man', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'man') au BufNewFile,BufRead *.1,*.1in,*.1m,*.1x,*.2,*.3,*.3in,*.3m,*.3p,*.3pm,*.3qt,*.3x,*.4,*.5,*.6,*.7,*.8,*.9,*.man,*.mdoc setf man endif -if polyglot#util#IsEnabled('xf86conf', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'xf86conf') au BufNewFile,BufRead */xorg.conf.d/*.conf,xorg.conf,xorg.conf-4 setf xf86conf au BufNewFile,BufRead XF86Config-4* call s:StarSetf('xf86conf') au BufNewFile,BufRead XF86Config* call s:StarSetf('xf86conf') endif -if polyglot#util#IsEnabled('pullrequest', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'pullrequest') au BufNewFile,BufRead PULLREQ_EDITMSG setf pullrequest endif -if polyglot#util#IsEnabled('text', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'text') au BufNewFile,BufRead *.text,README setf text endif -if polyglot#util#IsEnabled('svn', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'svn') au BufNewFile,BufRead svn-commit*.tmp setf svn endif -if polyglot#util#IsEnabled('logcheck', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'logcheck') au BufNewFile,BufRead */etc/logcheck/*.d*/* call s:StarSetf('logcheck') endif -if polyglot#util#IsEnabled('fvwm', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'fvwm') au BufNewFile,BufRead */.fvwm/* call s:StarSetf('fvwm') endif -if polyglot#util#IsEnabled('crontab', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'crontab') au BufNewFile,BufRead crontab setf crontab au BufNewFile,BufRead crontab.* call s:StarSetf('crontab') au BufNewFile,BufRead */etc/cron.d/* call s:StarSetf('crontab') endif -if polyglot#util#IsEnabled('bzr', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'bzr') au BufNewFile,BufRead bzr_log.* call s:StarSetf('bzr') endif -if polyglot#util#IsEnabled('asteriskvm', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'asteriskvm') au BufNewFile,BufRead *asterisk*/*voicemail.conf* call s:StarSetf('asteriskvm') endif -if polyglot#util#IsEnabled('asterisk', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'asterisk') au BufNewFile,BufRead *asterisk/*.conf* call s:StarSetf('asterisk') endif -if polyglot#util#IsEnabled('apachestyle', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'apachestyle') au BufNewFile,BufRead proftpd.conf* call s:StarSetf('apachestyle') au BufNewFile,BufRead */etc/proftpd/conf.*/* call s:StarSetf('apachestyle') au BufNewFile,BufRead */etc/proftpd/*.conf* call s:StarSetf('apachestyle') endif -if polyglot#util#IsEnabled('z8a', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'z8a') au BufNewFile,BufRead *.z8a setf z8a endif -if polyglot#util#IsEnabled('zimbutempl', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'zimbutempl') au BufNewFile,BufRead *.zut setf zimbutempl endif -if polyglot#util#IsEnabled('zimbu', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'zimbu') au BufNewFile,BufRead *.zu setf zimbu endif -if polyglot#util#IsEnabled('yacc', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'yacc') au BufNewFile,BufRead *.y++,*.yxx,*.yy setf yacc endif -if polyglot#util#IsEnabled('xslt', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'xslt') au BufNewFile,BufRead *.xsl,*.xslt setf xslt endif -if polyglot#util#IsEnabled('xsd', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'xsd') au BufNewFile,BufRead *.xsd setf xsd endif -if polyglot#util#IsEnabled('xquery', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'xquery') au BufNewFile,BufRead *.xq,*.xql,*.xqm,*.xquery,*.xqy setf xquery endif -if polyglot#util#IsEnabled('xmodmap', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'xmodmap') au BufNewFile,BufRead *Xmodmap setf xmodmap au BufNewFile,BufRead *xmodmap* call s:StarSetf('xmodmap') endif -if polyglot#util#IsEnabled('xmath', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'xmath') au BufNewFile,BufRead *.msc,*.msf setf xmath endif -if polyglot#util#IsEnabled('xdefaults', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'xdefaults') au BufNewFile,BufRead *.ad,{.,}Xdefaults,{.,}Xpdefaults,{.,}Xresources,xdm-config setf xdefaults au BufNewFile,BufRead Xresources* call s:StarSetf('xdefaults') au BufNewFile,BufRead */app-defaults/* call s:StarSetf('xdefaults') au BufNewFile,BufRead */Xresources/* call s:StarSetf('xdefaults') endif -if polyglot#util#IsEnabled('xinetd', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'xinetd') au BufNewFile,BufRead */etc/xinetd.conf setf xinetd au BufNewFile,BufRead */etc/xinetd.d/* call s:StarSetf('xinetd') endif -if polyglot#util#IsEnabled('xhtml', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'xhtml') au BufNewFile,BufRead *.xht,*.xhtml setf xhtml endif -if polyglot#util#IsEnabled('wsh', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'wsh') au BufNewFile,BufRead *.ws[fc] setf wsh endif -if polyglot#util#IsEnabled('cvs', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'cvs') au BufNewFile,BufRead cvs\d\+ setf cvs endif -if polyglot#util#IsEnabled('cvsrc', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'cvsrc') au BufNewFile,BufRead {.,}cvsrc setf cvsrc endif -if polyglot#util#IsEnabled('wvdial', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'wvdial') au BufNewFile,BufRead {.,}wvdialrc,wvdial.conf setf wvdial endif -if polyglot#util#IsEnabled('wsml', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'wsml') au BufNewFile,BufRead *.wsml setf wsml endif -if polyglot#util#IsEnabled('winbatch', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'winbatch') au BufNewFile,BufRead *.wbt setf winbatch endif -if polyglot#util#IsEnabled('wml', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'wml') au BufNewFile,BufRead *.wml setf wml endif -if polyglot#util#IsEnabled('wget', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'wget') au BufNewFile,BufRead {.,}wgetrc,wgetrc setf wget endif -if polyglot#util#IsEnabled('webmacro', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'webmacro') au BufNewFile,BufRead *.wm setf webmacro endif -if polyglot#util#IsEnabled('wast', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'wast') au BufNewFile,BufRead *.wast,*.wat setf wast endif -if polyglot#util#IsEnabled('vroom', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'vroom') au BufNewFile,BufRead *.vroom setf vroom endif -if polyglot#util#IsEnabled('vrml', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'vrml') au BufNewFile,BufRead *.wrl setf vrml endif -if polyglot#util#IsEnabled('vgrindefs', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'vgrindefs') au BufNewFile,BufRead vgrindefs setf vgrindefs endif -if polyglot#util#IsEnabled('viminfo', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'viminfo') au BufNewFile,BufRead {.,}viminfo,_viminfo setf viminfo endif -if polyglot#util#IsEnabled('vim', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'vim') au BufNewFile,BufRead *.vba,*.vim,{.,}exrc,_exrc setf vim au BufNewFile,BufRead *vimrc* call s:StarSetf('vim') endif -if polyglot#util#IsEnabled('vhdl', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'vhdl') au BufNewFile,BufRead *.hdl,*.vbe,*.vhd,*.vhdl,*.vho,*.vst setf vhdl au BufNewFile,BufRead *.vhdl_[0-9]* call s:StarSetf('vhdl') endif -if polyglot#util#IsEnabled('systemverilog', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'systemverilog') au BufNewFile,BufRead *.sv,*.svh setf systemverilog endif -if polyglot#util#IsEnabled('verilogams', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'verilogams') au BufNewFile,BufRead *.va,*.vams setf verilogams endif -if polyglot#util#IsEnabled('verilog', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'verilog') au BufNewFile,BufRead *.v setf verilog endif -if polyglot#util#IsEnabled('vera', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'vera') au BufNewFile,BufRead *.vr,*.vrh,*.vri setf vera endif -if polyglot#util#IsEnabled('upstart', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'upstart') au BufNewFile,BufRead */.config/upstart/*.conf,*/.config/upstart/*.override,*/.init/*.conf,*/.init/*.override,*/etc/init/*.conf,*/etc/init/*.override,*/usr/share/upstart/*.conf,*/usr/share/upstart/*.override setf upstart endif -if polyglot#util#IsEnabled('updatedb', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'updatedb') au BufNewFile,BufRead */etc/updatedb.conf setf updatedb endif -if polyglot#util#IsEnabled('uc', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'uc') au BufNewFile,BufRead *.uc setf uc endif -if polyglot#util#IsEnabled('udevperm', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'udevperm') au BufNewFile,BufRead */etc/udev/permissions.d/*.permissions setf udevperm endif -if polyglot#util#IsEnabled('udevconf', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'udevconf') au BufNewFile,BufRead */etc/udev/udev.conf setf udevconf endif -if polyglot#util#IsEnabled('uil', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'uil') au BufNewFile,BufRead *.uil,*.uit setf uil endif -if polyglot#util#IsEnabled('tsscl', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'tsscl') au BufNewFile,BufRead *.tsscl setf tsscl endif -if polyglot#util#IsEnabled('tssop', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'tssop') au BufNewFile,BufRead *.tssop setf tssop endif -if polyglot#util#IsEnabled('tssgm', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'tssgm') au BufNewFile,BufRead *.tssgm setf tssgm endif -if polyglot#util#IsEnabled('trustees', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'trustees') au BufNewFile,BufRead trustees.conf setf trustees endif -if polyglot#util#IsEnabled('treetop', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'treetop') au BufNewFile,BufRead *.treetop setf treetop endif -if polyglot#util#IsEnabled('tpp', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'tpp') au BufNewFile,BufRead *.tpp setf tpp endif -if polyglot#util#IsEnabled('tidy', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'tidy') au BufNewFile,BufRead {.,}tidyrc,tidy.conf,tidyrc setf tidy endif -if polyglot#util#IsEnabled('texmf', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'texmf') au BufNewFile,BufRead texmf.cnf setf texmf endif -if polyglot#util#IsEnabled('texinfo', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'texinfo') au BufNewFile,BufRead *.texi,*.texinfo,*.txi setf texinfo endif -if polyglot#util#IsEnabled('tex', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'tex') au BufNewFile,BufRead *.bbl,*.dtx,*.latex,*.ltx,*.sty setf tex endif -if polyglot#util#IsEnabled('terminfo', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'terminfo') au BufNewFile,BufRead *.ti setf terminfo endif -if polyglot#util#IsEnabled('teraterm', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'teraterm') au BufNewFile,BufRead *.ttl setf teraterm endif -if polyglot#util#IsEnabled('tsalt', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'tsalt') au BufNewFile,BufRead *.slt setf tsalt endif -if polyglot#util#IsEnabled('tli', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'tli') au BufNewFile,BufRead *.tli setf tli endif -if polyglot#util#IsEnabled('tcl', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'tcl') au BufNewFile,BufRead *.itcl,*.itk,*.jacl,*.tcl,*.tk setf tcl endif -if polyglot#util#IsEnabled('taskedit', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'taskedit') au BufNewFile,BufRead *.task setf taskedit endif -if polyglot#util#IsEnabled('taskdata', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'taskdata') au BufNewFile,BufRead {pending,completed,undo}.data setf taskdata endif -if polyglot#util#IsEnabled('tak', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'tak') au BufNewFile,BufRead *.tak setf tak endif -if polyglot#util#IsEnabled('tags', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'tags') au BufNewFile,BufRead tags setf tags endif -if polyglot#util#IsEnabled('sudoers', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'sudoers') au BufNewFile,BufRead */etc/sudoers,sudoers.tmp setf sudoers endif -if polyglot#util#IsEnabled('sdc', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'sdc') au BufNewFile,BufRead *.sdc setf sdc endif -if polyglot#util#IsEnabled('sysctl', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'sysctl') au BufNewFile,BufRead */etc/sysctl.conf,*/etc/sysctl.d/*.conf setf sysctl endif -if polyglot#util#IsEnabled('sil', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'sil') au BufNewFile,BufRead *.sil setf sil endif -if polyglot#util#IsEnabled('swiftgyb', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'swiftgyb') au BufNewFile,BufRead *.swift.gyb setf swiftgyb endif -if polyglot#util#IsEnabled('voscm', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'voscm') au BufNewFile,BufRead *.cm setf voscm endif -if polyglot#util#IsEnabled('sml', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'sml') au BufNewFile,BufRead *.sml setf sml endif -if polyglot#util#IsEnabled('stp', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'stp') au BufNewFile,BufRead *.stp setf stp endif -if polyglot#util#IsEnabled('smcl', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'smcl') au BufNewFile,BufRead *.hlp,*.ihlp,*.smcl setf smcl endif -if polyglot#util#IsEnabled('stata', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'stata') au BufNewFile,BufRead *.ado,*.do,*.imata,*.mata setf stata endif -if polyglot#util#IsEnabled('sshdconfig', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'sshdconfig') au BufNewFile,BufRead */etc/ssh/sshd_config.d/*.conf,sshd_config setf sshdconfig endif -if polyglot#util#IsEnabled('sshconfig', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'sshconfig') au BufNewFile,BufRead */.ssh/config,*/etc/ssh/ssh_config.d/*.conf,ssh_config setf sshconfig endif -if polyglot#util#IsEnabled('sqr', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'sqr') au BufNewFile,BufRead *.sqi,*.sqr setf sqr endif -if polyglot#util#IsEnabled('sqlj', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'sqlj') au BufNewFile,BufRead *.sqlj setf sqlj endif -if polyglot#util#IsEnabled('squid', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'squid') au BufNewFile,BufRead squid.conf setf squid endif -if polyglot#util#IsEnabled('spice', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'spice') au BufNewFile,BufRead *.sp,*.spice setf spice endif -if polyglot#util#IsEnabled('slice', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'slice') au BufNewFile,BufRead *.ice setf slice endif -if polyglot#util#IsEnabled('spup', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'spup') au BufNewFile,BufRead *.spd,*.spdata,*.speedup setf spup endif -if polyglot#util#IsEnabled('hog', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'hog') au BufNewFile,BufRead *.hog,snort.conf,vision.conf setf hog endif -if polyglot#util#IsEnabled('mib', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'mib') au BufNewFile,BufRead *.mib,*.my setf mib endif -if polyglot#util#IsEnabled('snobol4', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'snobol4') au BufNewFile,BufRead *.sno,*.spt setf snobol4 endif -if polyglot#util#IsEnabled('smith', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'smith') au BufNewFile,BufRead *.smith,*.smt setf smith endif -if polyglot#util#IsEnabled('st', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'st') au BufNewFile,BufRead *.st setf st endif -if polyglot#util#IsEnabled('slrnsc', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'slrnsc') au BufNewFile,BufRead *.score setf slrnsc endif -if polyglot#util#IsEnabled('slrnrc', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'slrnrc') au BufNewFile,BufRead {.,}slrnrc setf slrnrc endif -if polyglot#util#IsEnabled('skill', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'skill') au BufNewFile,BufRead *.cdf,*.il,*.ils setf skill endif -if polyglot#util#IsEnabled('sisu', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'sisu') au BufNewFile,BufRead *.-sst,*.-sst.meta,*._sst,*._sst.meta,*.ssi,*.ssm,*.sst,*.sst.meta setf sisu endif -if polyglot#util#IsEnabled('sinda', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'sinda') au BufNewFile,BufRead *.s85,*.sin setf sinda endif -if polyglot#util#IsEnabled('simula', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'simula') au BufNewFile,BufRead *.sim setf simula endif -if polyglot#util#IsEnabled('screen', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'screen') au BufNewFile,BufRead {.,}screenrc,screenrc setf screen endif -if polyglot#util#IsEnabled('scheme', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'scheme') au BufNewFile,BufRead *.rkt,*.scm,*.ss setf scheme endif -if polyglot#util#IsEnabled('catalog', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'catalog') au BufNewFile,BufRead catalog setf catalog au BufNewFile,BufRead sgml.catalog* call s:StarSetf('catalog') endif -if polyglot#util#IsEnabled('setserial', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'setserial') au BufNewFile,BufRead */etc/serial.conf setf setserial endif -if polyglot#util#IsEnabled('slpspi', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'slpspi') au BufNewFile,BufRead */etc/slp.spi setf slpspi endif -if polyglot#util#IsEnabled('spyce', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'spyce') au BufNewFile,BufRead *.spi,*.spy setf spyce endif -if polyglot#util#IsEnabled('slpreg', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'slpreg') au BufNewFile,BufRead */etc/slp.reg setf slpreg endif -if polyglot#util#IsEnabled('slpconf', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'slpconf') au BufNewFile,BufRead */etc/slp.conf setf slpconf endif -if polyglot#util#IsEnabled('services', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'services') au BufNewFile,BufRead */etc/services setf services endif -if polyglot#util#IsEnabled('sm', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'sm') au BufNewFile,BufRead sendmail.cf setf sm endif -if polyglot#util#IsEnabled('sieve', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'sieve') au BufNewFile,BufRead *.sieve,*.siv setf sieve endif -if polyglot#util#IsEnabled('sdl', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'sdl') au BufNewFile,BufRead *.pr,*.sdl setf sdl endif -if polyglot#util#IsEnabled('sd', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'sd') au BufNewFile,BufRead *.sd setf sd endif -if polyglot#util#IsEnabled('scilab', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'scilab') au BufNewFile,BufRead *.sce,*.sci setf scilab endif -if polyglot#util#IsEnabled('sbt', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'sbt') au BufNewFile,BufRead *.sbt setf sbt endif -if polyglot#util#IsEnabled('sather', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'sather') au BufNewFile,BufRead *.sa setf sather endif -if polyglot#util#IsEnabled('sass', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'sass') au BufNewFile,BufRead *.sass setf sass endif -if polyglot#util#IsEnabled('sas', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'sas') au BufNewFile,BufRead *.sas setf sas endif -if polyglot#util#IsEnabled('samba', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'samba') au BufNewFile,BufRead smb.conf setf samba endif -if polyglot#util#IsEnabled('slang', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'slang') au BufNewFile,BufRead *.sl setf slang endif -if polyglot#util#IsEnabled('rtf', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'rtf') au BufNewFile,BufRead *.rtf setf rtf endif -if polyglot#util#IsEnabled('rpcgen', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'rpcgen') au BufNewFile,BufRead *.x setf rpcgen endif -if polyglot#util#IsEnabled('robots', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'robots') au BufNewFile,BufRead robots.txt setf robots endif -if polyglot#util#IsEnabled('rpl', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'rpl') au BufNewFile,BufRead *.rpl setf rpl endif -if polyglot#util#IsEnabled('rng', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'rng') au BufNewFile,BufRead *.rng setf rng endif -if polyglot#util#IsEnabled('rnc', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'rnc') au BufNewFile,BufRead *.rnc setf rnc endif -if polyglot#util#IsEnabled('resolv', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'resolv') au BufNewFile,BufRead resolv.conf setf resolv endif -if polyglot#util#IsEnabled('remind', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'remind') au BufNewFile,BufRead *.rem,*.remind,{.,}reminders setf remind au BufNewFile,BufRead .reminders* call s:StarSetf('remind') endif -if polyglot#util#IsEnabled('rrst', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'rrst') au BufNewFile,BufRead *.rrst,*.srst setf rrst endif -if polyglot#util#IsEnabled('rmd', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'rmd') au BufNewFile,BufRead *.rmd,*.smd setf rmd endif -if polyglot#util#IsEnabled('rnoweb', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'rnoweb') au BufNewFile,BufRead *.rnw,*.snw setf rnoweb endif -if polyglot#util#IsEnabled('rexx', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'rexx') au BufNewFile,BufRead *.jrexx,*.orx,*.rex,*.rexx,*.rexxj,*.rxj,*.rxo,*.testGroup,*.testUnit setf rexx endif -if polyglot#util#IsEnabled('rego', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'rego') au BufNewFile,BufRead *.rego setf rego endif -if polyglot#util#IsEnabled('rib', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'rib') au BufNewFile,BufRead *.rib setf rib endif -if polyglot#util#IsEnabled('readline', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'readline') au BufNewFile,BufRead {.,}inputrc,inputrc setf readline endif -if polyglot#util#IsEnabled('rcs', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'rcs') au BufNewFile,BufRead *\,v setf rcs endif -if polyglot#util#IsEnabled('ratpoison', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'ratpoison') au BufNewFile,BufRead {.,}ratpoisonrc,ratpoisonrc setf ratpoison endif -if polyglot#util#IsEnabled('radiance', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'radiance') au BufNewFile,BufRead *.mat,*.rad setf radiance endif -if polyglot#util#IsEnabled('pyrex', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'pyrex') au BufNewFile,BufRead *.pxd,*.pyx setf pyrex endif -if polyglot#util#IsEnabled('protocols', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'protocols') au BufNewFile,BufRead */etc/protocols setf protocols endif -if polyglot#util#IsEnabled('promela', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'promela') au BufNewFile,BufRead *.pml setf promela endif -if polyglot#util#IsEnabled('psf', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'psf') au BufNewFile,BufRead *.psf setf psf endif -if polyglot#util#IsEnabled('procmail', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'procmail') au BufNewFile,BufRead {.,}procmail,{.,}procmailrc setf procmail endif -if polyglot#util#IsEnabled('privoxy', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'privoxy') au BufNewFile,BufRead *.action setf privoxy endif -if polyglot#util#IsEnabled('proc', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'proc') au BufNewFile,BufRead *.pc setf proc endif -if polyglot#util#IsEnabled('obj', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'obj') au BufNewFile,BufRead *.obj setf obj endif -if polyglot#util#IsEnabled('ppwiz', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'ppwiz') au BufNewFile,BufRead *.ih,*.it setf ppwiz endif -if polyglot#util#IsEnabled('pccts', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'pccts') au BufNewFile,BufRead *.g setf pccts endif -if polyglot#util#IsEnabled('povini', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'povini') au BufNewFile,BufRead {.,}povrayrc setf povini endif -if polyglot#util#IsEnabled('pov', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'pov') au BufNewFile,BufRead *.pov setf pov endif -if polyglot#util#IsEnabled('ppd', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'ppd') au BufNewFile,BufRead *.ppd setf ppd endif -if polyglot#util#IsEnabled('postscr', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'postscr') au BufNewFile,BufRead *.afm,*.ai,*.eps,*.epsf,*.epsi,*.pfa,*.ps setf postscr endif -if polyglot#util#IsEnabled('pfmain', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'pfmain') au BufNewFile,BufRead main.cf setf pfmain endif -if polyglot#util#IsEnabled('po', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'po') au BufNewFile,BufRead *.po,*.pot setf po endif -if polyglot#util#IsEnabled('plp', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'plp') au BufNewFile,BufRead *.plp setf plp endif -if polyglot#util#IsEnabled('plsql', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'plsql') au BufNewFile,BufRead *.pls,*.plsql setf plsql endif -if polyglot#util#IsEnabled('plm', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'plm') au BufNewFile,BufRead *.p36,*.pac,*.plm setf plm endif -if polyglot#util#IsEnabled('pli', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'pli') au BufNewFile,BufRead *.pl1,*.pli setf pli endif -if polyglot#util#IsEnabled('pine', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'pine') au BufNewFile,BufRead {.,}pinerc,{.,}pinercex,pinerc,pinercex setf pine endif -if polyglot#util#IsEnabled('pilrc', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'pilrc') au BufNewFile,BufRead *.rcp setf pilrc endif -if polyglot#util#IsEnabled('pinfo', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'pinfo') au BufNewFile,BufRead */.pinforc,*/etc/pinforc setf pinfo endif -if polyglot#util#IsEnabled('cmod', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'cmod') au BufNewFile,BufRead *.cmod setf cmod endif -if polyglot#util#IsEnabled('pike', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'pike') au BufNewFile,BufRead *.pike,*.pmod setf pike endif -if polyglot#util#IsEnabled('pcmk', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'pcmk') au BufNewFile,BufRead *.pcmk setf pcmk endif -if polyglot#util#IsEnabled('pdf', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'pdf') au BufNewFile,BufRead *.pdf setf pdf endif -if polyglot#util#IsEnabled('pascal', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'pascal') au BufNewFile,BufRead *.dpr,*.lpr,*.pas,*.pp setf pascal endif -if polyglot#util#IsEnabled('passwd', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'passwd') au BufNewFile,BufRead */etc/passwd,*/etc/passwd-,*/etc/passwd.edit,*/etc/shadow,*/etc/shadow-,*/etc/shadow.edit,*/var/backups/passwd.bak,*/var/backups/shadow.bak setf passwd endif -if polyglot#util#IsEnabled('papp', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'papp') au BufNewFile,BufRead *.papp,*.pxml,*.pxsl setf papp endif -if polyglot#util#IsEnabled('pamenv', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'pamenv') au BufNewFile,BufRead {.,}pam_environment,pam_env.conf setf pamenv endif -if polyglot#util#IsEnabled('pamconf', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'pamconf') au BufNewFile,BufRead */etc/pam.conf setf pamconf au BufNewFile,BufRead */etc/pam.d/* call s:StarSetf('pamconf') endif -if polyglot#util#IsEnabled('pf', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'pf') au BufNewFile,BufRead pf.conf setf pf endif -if polyglot#util#IsEnabled('ora', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'ora') au BufNewFile,BufRead *.ora setf ora endif -if polyglot#util#IsEnabled('opl', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'opl') au BufNewFile,BufRead *.[Oo][Pp][Ll] setf opl endif -if polyglot#util#IsEnabled('openroad', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'openroad') au BufNewFile,BufRead *.or setf openroad endif -if polyglot#util#IsEnabled('omnimark', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'omnimark') au BufNewFile,BufRead *.xin,*.xom setf omnimark endif -if polyglot#util#IsEnabled('occam', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'occam') au BufNewFile,BufRead *.occ setf occam endif -if polyglot#util#IsEnabled('nsis', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'nsis') au BufNewFile,BufRead *.nsh,*.nsi setf nsis endif -if polyglot#util#IsEnabled('nqc', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'nqc') au BufNewFile,BufRead *.nqc setf nqc endif -if polyglot#util#IsEnabled('nroff', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'nroff') au BufNewFile,BufRead *.mom,*.nr,*.roff,*.tmac,*.tr setf nroff au BufNewFile,BufRead tmac.* call s:StarSetf('nroff') endif -if polyglot#util#IsEnabled('ncf', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'ncf') au BufNewFile,BufRead *.ncf setf ncf endif -if polyglot#util#IsEnabled('ninja', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'ninja') au BufNewFile,BufRead *.ninja setf ninja endif -if polyglot#util#IsEnabled('netrc', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'netrc') au BufNewFile,BufRead {.,}netrc setf netrc endif -if polyglot#util#IsEnabled('neomuttrc', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'neomuttrc') au BufNewFile,BufRead Neomuttrc setf neomuttrc au BufNewFile,BufRead neomuttrc* call s:StarSetf('neomuttrc') au BufNewFile,BufRead Neomuttrc* call s:StarSetf('neomuttrc') @@ -859,27 +890,27 @@ if polyglot#util#IsEnabled('neomuttrc', 'ftdetect') au BufNewFile,BufRead */.neomutt/neomuttrc* call s:StarSetf('neomuttrc') endif -if polyglot#util#IsEnabled('natural', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'natural') au BufNewFile,BufRead *.NS[ACGLMNPS] setf natural endif -if polyglot#util#IsEnabled('nanorc', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'nanorc') au BufNewFile,BufRead *.nanorc,*/etc/nanorc setf nanorc endif -if polyglot#util#IsEnabled('n1ql', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'n1ql') au BufNewFile,BufRead *.n1ql,*.nql setf n1ql endif -if polyglot#util#IsEnabled('mush', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'mush') au BufNewFile,BufRead *.mush setf mush endif -if polyglot#util#IsEnabled('mupad', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'mupad') au BufNewFile,BufRead *.mu setf mupad endif -if polyglot#util#IsEnabled('muttrc', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'muttrc') au BufNewFile,BufRead Mutt{ng,}rc setf muttrc au BufNewFile,BufRead mutt{ng,}rc* call s:StarSetf('muttrc') au BufNewFile,BufRead Mutt{ng,}rc* call s:StarSetf('muttrc') @@ -888,1006 +919,1006 @@ if polyglot#util#IsEnabled('muttrc', 'ftdetect') au BufNewFile,BufRead */.mutt{ng,}/mutt{ng,}rc* call s:StarSetf('muttrc') endif -if polyglot#util#IsEnabled('msql', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'msql') au BufNewFile,BufRead *.msql setf msql endif -if polyglot#util#IsEnabled('mrxvtrc', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'mrxvtrc') au BufNewFile,BufRead {.,}mrxvtrc,mrxvtrc setf mrxvtrc endif -if polyglot#util#IsEnabled('srec', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'srec') au BufNewFile,BufRead *.mot,*.s19,*.s28,*.s37,*.srec setf srec endif -if polyglot#util#IsEnabled('mplayerconf', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'mplayerconf') au BufNewFile,BufRead */.mplayer/config,mplayer.conf setf mplayerconf endif -if polyglot#util#IsEnabled('modconf', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'modconf') au BufNewFile,BufRead */etc/conf.modules,*/etc/modules,*/etc/modules.conf setf modconf au BufNewFile,BufRead */etc/modprobe.* call s:StarSetf('modconf') endif -if polyglot#util#IsEnabled('moo', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'moo') au BufNewFile,BufRead *.moo setf moo endif -if polyglot#util#IsEnabled('monk', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'monk') au BufNewFile,BufRead *.isc,*.monk,*.ssc,*.tsc setf monk endif -if polyglot#util#IsEnabled('modula3', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'modula3') au BufNewFile,BufRead *.[mi][3g] setf modula3 endif -if polyglot#util#IsEnabled('modula2', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'modula2') au BufNewFile,BufRead *.DEF,*.MOD,*.m2,*.mi setf modula2 endif -if polyglot#util#IsEnabled('mmp', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'mmp') au BufNewFile,BufRead *.mmp setf mmp endif -if polyglot#util#IsEnabled('mix', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'mix') au BufNewFile,BufRead *.mix,*.mixal setf mix endif -if polyglot#util#IsEnabled('mgl', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'mgl') au BufNewFile,BufRead *.mgl setf mgl endif -if polyglot#util#IsEnabled('mp', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'mp') au BufNewFile,BufRead *.mp setf mp endif -if polyglot#util#IsEnabled('mf', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'mf') au BufNewFile,BufRead *.mf setf mf endif -if polyglot#util#IsEnabled('messages', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'messages') au BufNewFile,BufRead */log/{auth,cron,daemon,debug,kern,lpr,mail,messages,news/news,syslog,user}{,.log,.err,.info,.warn,.crit,.notice}{,.[0-9]*,-[0-9]*} setf messages endif -if polyglot#util#IsEnabled('hgcommit', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'hgcommit') au BufNewFile,BufRead hg-editor-*.txt setf hgcommit endif -if polyglot#util#IsEnabled('mel', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'mel') au BufNewFile,BufRead *.mel setf mel endif -if polyglot#util#IsEnabled('map', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'map') au BufNewFile,BufRead *.map setf map endif -if polyglot#util#IsEnabled('maple', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'maple') au BufNewFile,BufRead *.mpl,*.mv,*.mws setf maple endif -if polyglot#util#IsEnabled('manconf', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'manconf') au BufNewFile,BufRead */etc/man.conf,man.config setf manconf endif -if polyglot#util#IsEnabled('mallard', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'mallard') au BufNewFile,BufRead *.page setf mallard endif -if polyglot#util#IsEnabled('ist', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'ist') au BufNewFile,BufRead *.ist,*.mst setf ist endif -if polyglot#util#IsEnabled('mailcap', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'mailcap') au BufNewFile,BufRead {.,}mailcap,mailcap setf mailcap endif -if polyglot#util#IsEnabled('mailaliases', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'mailaliases') au BufNewFile,BufRead */etc/aliases,*/etc/mail/aliases setf mailaliases endif -if polyglot#util#IsEnabled('mail', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'mail') au BufNewFile,BufRead *.eml,{.,}article,{.,}article.\d\+,{.,}followup,{.,}letter,{.,}letter.\d\+,/tmp/SLRN[0-9A-Z.]\+,ae\d\+.txt,mutt[[:alnum:]_-]\\\{6\},mutt{ng,}-*-\w\+,neomutt-*-\w\+,neomutt[[:alnum:]_-]\\\{6\},pico.\d\+,snd.\d\+,{neo,}mutt[[:alnum:]._-]\\\{6\} setf mail au BufNewFile,BufRead reportbug-* call s:StarSetf('mail') endif -if polyglot#util#IsEnabled('mgp', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'mgp') au BufNewFile,BufRead *.mgp setf mgp endif -if polyglot#util#IsEnabled('lss', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'lss') au BufNewFile,BufRead *.lss setf lss endif -if polyglot#util#IsEnabled('lsl', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'lsl') au BufNewFile,BufRead *.lsl setf lsl endif -if polyglot#util#IsEnabled('lout', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'lout') au BufNewFile,BufRead *.lou,*.lout setf lout endif -if polyglot#util#IsEnabled('lotos', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'lotos') au BufNewFile,BufRead *.lot,*.lotos setf lotos endif -if polyglot#util#IsEnabled('logtalk', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'logtalk') au BufNewFile,BufRead *.lgt setf logtalk endif -if polyglot#util#IsEnabled('logindefs', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'logindefs') au BufNewFile,BufRead */etc/login.defs setf logindefs endif -if polyglot#util#IsEnabled('loginaccess', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'loginaccess') au BufNewFile,BufRead */etc/login.access setf loginaccess endif -if polyglot#util#IsEnabled('litestep', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'litestep') au BufNewFile,BufRead */LiteStep/*/*.rc setf litestep endif -if polyglot#util#IsEnabled('lite', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'lite') au BufNewFile,BufRead *.lite,*.lt setf lite endif -if polyglot#util#IsEnabled('liquid', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'liquid') au BufNewFile,BufRead *.liquid setf liquid endif -if polyglot#util#IsEnabled('lisp', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'lisp') au BufNewFile,BufRead *.cl,*.el,*.lisp,*.lsp,{.,}emacs,{.,}sawfishrc,{.,}sbclrc,sbclrc setf lisp endif -if polyglot#util#IsEnabled('lilo', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'lilo') au BufNewFile,BufRead lilo.conf setf lilo au BufNewFile,BufRead lilo.conf* call s:StarSetf('lilo') endif -if polyglot#util#IsEnabled('lifelines', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'lifelines') au BufNewFile,BufRead *.ll setf lifelines endif -if polyglot#util#IsEnabled('lftp', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'lftp') au BufNewFile,BufRead *lftp/rc,{.,}lftprc,lftp.conf setf lftp endif -if polyglot#util#IsEnabled('sensors', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'sensors') au BufNewFile,BufRead */etc/sensors.conf,*/etc/sensors3.conf setf sensors endif -if polyglot#util#IsEnabled('libao', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'libao') au BufNewFile,BufRead */.libao,*/etc/libao.conf setf libao endif -if polyglot#util#IsEnabled('lex', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'lex') au BufNewFile,BufRead *.l,*.l++,*.lex,*.lxx setf lex endif -if polyglot#util#IsEnabled('ld', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'ld') au BufNewFile,BufRead *.ld setf ld endif -if polyglot#util#IsEnabled('ldif', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'ldif') au BufNewFile,BufRead *.ldif setf ldif endif -if polyglot#util#IsEnabled('lprolog', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'lprolog') au BufNewFile,BufRead *.sig setf lprolog endif -if polyglot#util#IsEnabled('limits', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'limits') au BufNewFile,BufRead */etc/*limits.conf,*/etc/*limits.d/*.conf,*/etc/limits setf limits endif -if polyglot#util#IsEnabled('latte', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'latte') au BufNewFile,BufRead *.latte,*.lte setf latte endif -if polyglot#util#IsEnabled('lace', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'lace') au BufNewFile,BufRead *.ACE,*.ace setf lace endif -if polyglot#util#IsEnabled('kconfig', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'kconfig') au BufNewFile,BufRead Kconfig,Kconfig.debug setf kconfig au BufNewFile,BufRead Kconfig.* call s:StarSetf('kconfig') endif -if polyglot#util#IsEnabled('kscript', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'kscript') au BufNewFile,BufRead *.ks setf kscript endif -if polyglot#util#IsEnabled('kivy', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'kivy') au BufNewFile,BufRead *.kv setf kivy endif -if polyglot#util#IsEnabled('kwt', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'kwt') au BufNewFile,BufRead *.k setf kwt endif -if polyglot#util#IsEnabled('kix', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'kix') au BufNewFile,BufRead *.kix setf kix endif -if polyglot#util#IsEnabled('jovial', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'jovial') au BufNewFile,BufRead *.j73,*.jov,*.jovial setf jovial endif -if polyglot#util#IsEnabled('jgraph', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'jgraph') au BufNewFile,BufRead *.jgr setf jgraph endif -if polyglot#util#IsEnabled('jess', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'jess') au BufNewFile,BufRead *.clp setf jess endif -if polyglot#util#IsEnabled('jproperties', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'jproperties') au BufNewFile,BufRead *.properties,*.properties_??,*.properties_??_?? setf jproperties au BufNewFile,BufRead *.properties_??_??_* call s:StarSetf('jproperties') endif -if polyglot#util#IsEnabled('jsp', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'jsp') au BufNewFile,BufRead *.jsp setf jsp endif -if polyglot#util#IsEnabled('javacc', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'javacc') au BufNewFile,BufRead *.jj,*.jjt setf javacc endif -if polyglot#util#IsEnabled('java', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'java') au BufNewFile,BufRead *.jav,*.java setf java endif -if polyglot#util#IsEnabled('jam', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'jam') au BufNewFile,BufRead *.jpl,*.jpr setf jam au BufNewFile,BufRead Prl*.* call s:StarSetf('jam') au BufNewFile,BufRead JAM*.* call s:StarSetf('jam') endif -if polyglot#util#IsEnabled('jal', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'jal') au BufNewFile,BufRead *.JAL,*.jal setf jal endif -if polyglot#util#IsEnabled('j', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'j') au BufNewFile,BufRead *.ijs setf j endif -if polyglot#util#IsEnabled('iss', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'iss') au BufNewFile,BufRead *.iss setf iss endif -if polyglot#util#IsEnabled('inittab', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'inittab') au BufNewFile,BufRead inittab setf inittab endif -if polyglot#util#IsEnabled('fgl', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'fgl') au BufNewFile,BufRead *.4gh,*.4gl,*.m4gl setf fgl endif -if polyglot#util#IsEnabled('ipfilter', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'ipfilter') au BufNewFile,BufRead ipf.conf,ipf.rules,ipf6.conf setf ipfilter endif -if polyglot#util#IsEnabled('usw2kagtlog', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'usw2kagtlog') au BufNewFile,BufRead *.usw2kagt.log\c,usw2kagt.*.log\c,usw2kagt.log\c setf usw2kagtlog endif -if polyglot#util#IsEnabled('usserverlog', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'usserverlog') au BufNewFile,BufRead *.usserver.log\c,usserver.*.log\c,usserver.log\c setf usserverlog endif -if polyglot#util#IsEnabled('upstreaminstalllog', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'upstreaminstalllog') au BufNewFile,BufRead *.upstreaminstall.log\c,upstreaminstall.*.log\c,upstreaminstall.log\c setf upstreaminstalllog endif -if polyglot#util#IsEnabled('upstreamlog', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'upstreamlog') au BufNewFile,BufRead *.upstream.log\c,UPSTREAM-*.log\c,fdrupstream.log,upstream.*.log\c,upstream.log\c setf upstreamlog endif -if polyglot#util#IsEnabled('upstreamdat', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'upstreamdat') au BufNewFile,BufRead *.upstream.dat\c,upstream.*.dat\c,upstream.dat\c setf upstreamdat endif -if polyglot#util#IsEnabled('initng', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'initng') au BufNewFile,BufRead *.ii,*/etc/initng/*/*.i setf initng endif -if polyglot#util#IsEnabled('inform', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'inform') au BufNewFile,BufRead *.INF,*.inf setf inform endif -if polyglot#util#IsEnabled('indent', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'indent') au BufNewFile,BufRead {.,}indent.pro,indentrc setf indent endif -if polyglot#util#IsEnabled('icemenu', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'icemenu') au BufNewFile,BufRead */.icewm/menu setf icemenu endif -if polyglot#util#IsEnabled('msidl', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'msidl') au BufNewFile,BufRead *.mof,*.odl setf msidl endif -if polyglot#util#IsEnabled('icon', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'icon') au BufNewFile,BufRead *.icn setf icon endif -if polyglot#util#IsEnabled('httest', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'httest') au BufNewFile,BufRead *.htb,*.htt setf httest endif -if polyglot#util#IsEnabled('hb', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'hb') au BufNewFile,BufRead *.hb setf hb endif -if polyglot#util#IsEnabled('hostsaccess', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'hostsaccess') au BufNewFile,BufRead */etc/hosts.allow,*/etc/hosts.deny setf hostsaccess endif -if polyglot#util#IsEnabled('hostconf', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'hostconf') au BufNewFile,BufRead */etc/host.conf setf hostconf endif -if polyglot#util#IsEnabled('template', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'template') au BufNewFile,BufRead *.tmpl setf template endif -if polyglot#util#IsEnabled('htmlm4', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'htmlm4') au BufNewFile,BufRead *.html.m4 setf htmlm4 endif -if polyglot#util#IsEnabled('tilde', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'tilde') au BufNewFile,BufRead *.t.html setf tilde endif -if polyglot#util#IsEnabled('html', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'html') au BufNewFile,BufRead,BufWritePost *.html call polyglot#detect#Html() au BufNewFile,BufRead *.htm,*.html.hl,*.inc,*.st,*.xht,*.xhtml setf html endif -if polyglot#util#IsEnabled('hollywood', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'hollywood') au BufNewFile,BufRead *.hws setf hollywood endif -if polyglot#util#IsEnabled('hex', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'hex') au BufNewFile,BufRead *.h32,*.hex setf hex endif -if polyglot#util#IsEnabled('hercules', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'hercules') au BufNewFile,BufRead *.errsum,*.ev,*.sum,*.vc setf hercules endif -if polyglot#util#IsEnabled('hastepreproc', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'hastepreproc') au BufNewFile,BufRead *.htpp setf hastepreproc endif -if polyglot#util#IsEnabled('haste', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'haste') au BufNewFile,BufRead *.ht setf haste endif -if polyglot#util#IsEnabled('chaskell', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'chaskell') au BufNewFile,BufRead *.chs setf chaskell endif -if polyglot#util#IsEnabled('lhaskell', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'lhaskell') au BufNewFile,BufRead *.lhs setf lhaskell endif -if polyglot#util#IsEnabled('gtkrc', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'gtkrc') au BufNewFile,BufRead {.,}gtkrc,gtkrc setf gtkrc au BufNewFile,BufRead gtkrc* call s:StarSetf('gtkrc') au BufNewFile,BufRead .gtkrc* call s:StarSetf('gtkrc') endif -if polyglot#util#IsEnabled('group', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'group') au BufNewFile,BufRead */etc/group,*/etc/group-,*/etc/group.edit,*/etc/gshadow,*/etc/gshadow-,*/etc/gshadow.edit,*/var/backups/group.bak,*/var/backups/gshadow.bak setf group endif -if polyglot#util#IsEnabled('gsp', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'gsp') au BufNewFile,BufRead *.gsp setf gsp endif -if polyglot#util#IsEnabled('gretl', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'gretl') au BufNewFile,BufRead *.gretl setf gretl endif -if polyglot#util#IsEnabled('grads', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'grads') au BufNewFile,BufRead *.gs setf grads endif -if polyglot#util#IsEnabled('gitolite', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'gitolite') au BufNewFile,BufRead gitolite.conf setf gitolite au BufNewFile,BufRead */gitolite-admin/conf/* call s:StarSetf('gitolite') endif -if polyglot#util#IsEnabled('gnash', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'gnash') au BufNewFile,BufRead {.,}gnashpluginrc,{.,}gnashrc,gnashpluginrc,gnashrc setf gnash endif -if polyglot#util#IsEnabled('gpg', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'gpg') au BufNewFile,BufRead */.gnupg/gpg.conf,*/.gnupg/options,*/usr/*/gnupg/options.skel setf gpg endif -if polyglot#util#IsEnabled('gp', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'gp') au BufNewFile,BufRead *.gp,{.,}gprc setf gp endif -if polyglot#util#IsEnabled('gkrellmrc', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'gkrellmrc') au BufNewFile,BufRead gkrellmrc,gkrellmrc_? setf gkrellmrc endif -if polyglot#util#IsEnabled('gedcom', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'gedcom') au BufNewFile,BufRead *.ged,lltxxxxx.txt setf gedcom au BufNewFile,BufRead */tmp/lltmp* call s:StarSetf('gedcom') endif -if polyglot#util#IsEnabled('gdmo', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'gdmo') au BufNewFile,BufRead *.gdmo,*.mo setf gdmo endif -if polyglot#util#IsEnabled('gdb', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'gdb') au BufNewFile,BufRead {.,}gdbinit setf gdb endif -if polyglot#util#IsEnabled('fstab', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'fstab') au BufNewFile,BufRead fstab,mtab setf fstab endif -if polyglot#util#IsEnabled('framescript', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'framescript') au BufNewFile,BufRead *.fsl setf framescript endif -if polyglot#util#IsEnabled('fortran', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'fortran') au BufNewFile,BufRead *.f,*.f03,*.f08,*.f77,*.f90,*.f95,*.for,*.fortran,*.fpp,*.ftn setf fortran endif -if polyglot#util#IsEnabled('reva', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'reva') au BufNewFile,BufRead *.frt setf reva endif -if polyglot#util#IsEnabled('focexec', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'focexec') au BufNewFile,BufRead *.fex,*.focexec setf focexec endif -if polyglot#util#IsEnabled('fetchmail', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'fetchmail') au BufNewFile,BufRead {.,}fetchmailrc setf fetchmail endif -if polyglot#util#IsEnabled('factor', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'factor') au BufNewFile,BufRead *.factor setf factor endif -if polyglot#util#IsEnabled('fan', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'fan') au BufNewFile,BufRead *.fan,*.fwt setf fan endif -if polyglot#util#IsEnabled('falcon', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'falcon') au BufNewFile,BufRead *.fal setf falcon endif -if polyglot#util#IsEnabled('exports', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'exports') au BufNewFile,BufRead exports setf exports endif -if polyglot#util#IsEnabled('expect', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'expect') au BufNewFile,BufRead *.exp setf expect endif -if polyglot#util#IsEnabled('exim', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'exim') au BufNewFile,BufRead exim.conf setf exim endif -if polyglot#util#IsEnabled('csc', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'csc') au BufNewFile,BufRead *.csc setf csc endif -if polyglot#util#IsEnabled('esterel', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'esterel') au BufNewFile,BufRead *.strl setf esterel endif -if polyglot#util#IsEnabled('esqlc', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'esqlc') au BufNewFile,BufRead *.EC,*.ec setf esqlc endif -if polyglot#util#IsEnabled('esmtprc', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'esmtprc') au BufNewFile,BufRead *esmtprc setf esmtprc endif -if polyglot#util#IsEnabled('elmfilt', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'elmfilt') au BufNewFile,BufRead filter-rules setf elmfilt endif -if polyglot#util#IsEnabled('elinks', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'elinks') au BufNewFile,BufRead elinks.conf setf elinks endif -if polyglot#util#IsEnabled('ecd', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'ecd') au BufNewFile,BufRead *.ecd setf ecd endif -if polyglot#util#IsEnabled('edif', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'edif') au BufNewFile,BufRead *.ed\(f\|if\|o\) setf edif endif -if polyglot#util#IsEnabled('dts', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'dts') au BufNewFile,BufRead *.dts,*.dtsi setf dts endif -if polyglot#util#IsEnabled('dtd', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'dtd') au BufNewFile,BufRead *.dtd setf dtd endif -if polyglot#util#IsEnabled('dsl', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'dsl') au BufNewFile,BufRead *.dsl setf dsl endif -if polyglot#util#IsEnabled('datascript', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'datascript') au BufNewFile,BufRead *.ds setf datascript endif -if polyglot#util#IsEnabled('dracula', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'dracula') au BufNewFile,BufRead *.drac,*.drc,*lpe,*lvs setf dracula au BufNewFile,BufRead drac.* call s:StarSetf('dracula') endif -if polyglot#util#IsEnabled('def', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'def') au BufNewFile,BufRead *.def setf def endif -if polyglot#util#IsEnabled('dylan', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'dylan') au BufNewFile,BufRead *.dylan setf dylan endif -if polyglot#util#IsEnabled('dylanintr', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'dylanintr') au BufNewFile,BufRead *.intr setf dylanintr endif -if polyglot#util#IsEnabled('dylanlid', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'dylanlid') au BufNewFile,BufRead *.lid setf dylanlid endif -if polyglot#util#IsEnabled('dot', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'dot') au BufNewFile,BufRead *.dot,*.gv setf dot endif -if polyglot#util#IsEnabled('dircolors', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'dircolors') au BufNewFile,BufRead */etc/DIR_COLORS,{.,}dir_colors,{.,}dircolors setf dircolors endif -if polyglot#util#IsEnabled('diff', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'diff') au BufNewFile,BufRead *.diff,*.rej setf diff endif -if polyglot#util#IsEnabled('dictdconf', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'dictdconf') au BufNewFile,BufRead dictd.conf setf dictdconf endif -if polyglot#util#IsEnabled('dictconf', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'dictconf') au BufNewFile,BufRead {.,}dictrc,dict.conf setf dictconf endif -if polyglot#util#IsEnabled('desktop', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'desktop') au BufNewFile,BufRead *.desktop,*.directory setf desktop endif -if polyglot#util#IsEnabled('desc', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'desc') au BufNewFile,BufRead *.desc setf desc endif -if polyglot#util#IsEnabled('dnsmasq', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'dnsmasq') au BufNewFile,BufRead */etc/dnsmasq.conf setf dnsmasq au BufNewFile,BufRead */etc/dnsmasq.d/* call s:StarSetf('dnsmasq') endif -if polyglot#util#IsEnabled('denyhosts', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'denyhosts') au BufNewFile,BufRead denyhosts.conf setf denyhosts endif -if polyglot#util#IsEnabled('debsources', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'debsources') au BufNewFile,BufRead */etc/apt/sources.list,*/etc/apt/sources.list.d/*.list setf debsources endif -if polyglot#util#IsEnabled('debcopyright', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'debcopyright') au BufNewFile,BufRead */debian/copyright setf debcopyright endif -if polyglot#util#IsEnabled('debcontrol', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'debcontrol') au BufNewFile,BufRead */debian/control setf debcontrol endif -if polyglot#util#IsEnabled('cuplsim', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'cuplsim') au BufNewFile,BufRead *.si setf cuplsim endif -if polyglot#util#IsEnabled('cupl', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'cupl') au BufNewFile,BufRead *.pld setf cupl endif -if polyglot#util#IsEnabled('csp', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'csp') au BufNewFile,BufRead *.csp,*.fdr setf csp endif -if polyglot#util#IsEnabled('quake', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'quake') au BufNewFile,BufRead *baseq[2-3]/*.cfg,*id1/*.cfg,*quake[1-3]/*.cfg setf quake endif -if polyglot#util#IsEnabled('lynx', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'lynx') au BufNewFile,BufRead lynx.cfg setf lynx endif -if polyglot#util#IsEnabled('eterm', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'eterm') au BufNewFile,BufRead *Eterm/*.cfg setf eterm endif -if polyglot#util#IsEnabled('dcd', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'dcd') au BufNewFile,BufRead *.dcd setf dcd endif -if polyglot#util#IsEnabled('dockerfile', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'dockerfile') au BufNewFile,BufRead *.Dockerfile,*.dock,Containerfile,Dockerfile,dockerfile setf dockerfile au BufNewFile,BufRead Dockerfile* call s:StarSetf('dockerfile') endif -if polyglot#util#IsEnabled('cuda', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'cuda') au BufNewFile,BufRead *.cu,*.cuh setf cuda endif -if polyglot#util#IsEnabled('config', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'config') au BufNewFile,BufRead Pipfile,configure.ac,configure.in setf config au BufNewFile,BufRead /etc/hostname.* call s:StarSetf('config') endif -if polyglot#util#IsEnabled('cf', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'cf') au BufNewFile,BufRead *.cfc,*.cfi,*.cfm setf cf endif -if polyglot#util#IsEnabled('coco', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'coco') au BufNewFile,BufRead *.atg setf coco endif -if polyglot#util#IsEnabled('cobol', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'cobol') au BufNewFile,BufRead *.cbl,*.cob,*.lib setf cobol endif -if polyglot#util#IsEnabled('cmusrc', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'cmusrc') au BufNewFile,BufRead */.cmus/{autosave,rc,command-history,*.theme},*/cmus/{rc,*.theme} setf cmusrc endif -if polyglot#util#IsEnabled('cl', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'cl') au BufNewFile,BufRead *.eni setf cl endif -if polyglot#util#IsEnabled('clean', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'clean') au BufNewFile,BufRead *.dcl,*.icl setf clean endif -if polyglot#util#IsEnabled('chordpro', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'chordpro') au BufNewFile,BufRead *.cho,*.chopro,*.chordpro,*.crd,*.crdpro setf chordpro endif -if polyglot#util#IsEnabled('chill', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'chill') au BufNewFile,BufRead *..ch setf chill endif -if polyglot#util#IsEnabled('debchangelog', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'debchangelog') au BufNewFile,BufRead */debian/changelog,NEWS.Debian,NEWS.dch,changelog.Debian,changelog.dch setf debchangelog endif -if polyglot#util#IsEnabled('cterm', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'cterm') au BufNewFile,BufRead *.con setf cterm endif -if polyglot#util#IsEnabled('css', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'css') au BufNewFile,BufRead *.css setf css endif -if polyglot#util#IsEnabled('ch', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'ch') au BufNewFile,BufRead *.chf setf ch endif -if polyglot#util#IsEnabled('cynpp', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'cynpp') au BufNewFile,BufRead *.cyn setf cynpp endif -if polyglot#util#IsEnabled('crm', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'crm') au BufNewFile,BufRead *.crm setf crm endif -if polyglot#util#IsEnabled('conaryrecipe', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'conaryrecipe') au BufNewFile,BufRead *.recipe setf conaryrecipe endif -if polyglot#util#IsEnabled('cdl', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'cdl') au BufNewFile,BufRead *.cdl setf cdl endif -if polyglot#util#IsEnabled('chaiscript', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'chaiscript') au BufNewFile,BufRead *.chai setf chaiscript endif -if polyglot#util#IsEnabled('cfengine', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'cfengine') au BufNewFile,BufRead cfengine.conf setf cfengine endif -if polyglot#util#IsEnabled('cdrdaoconf', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'cdrdaoconf') au BufNewFile,BufRead */etc/cdrdao.conf,*/etc/default/cdrdao,*/etc/defaults/cdrdao,{.,}cdrdao setf cdrdaoconf endif -if polyglot#util#IsEnabled('cdrtoc', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'cdrtoc') au BufNewFile,BufRead *.toc setf cdrtoc endif -if polyglot#util#IsEnabled('cabal', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'cabal') au BufNewFile,BufRead *.cabal setf cabal endif -if polyglot#util#IsEnabled('csdl', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'csdl') au BufNewFile,BufRead *.csdl setf csdl endif -if polyglot#util#IsEnabled('cs', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'cs') au BufNewFile,BufRead *.cs setf cs endif -if polyglot#util#IsEnabled('calendar', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'calendar') au BufNewFile,BufRead calendar setf calendar au BufNewFile,BufRead */share/calendar/calendar.* call s:StarSetf('calendar') au BufNewFile,BufRead */share/calendar/*/calendar.* call s:StarSetf('calendar') au BufNewFile,BufRead */.calendar/* call s:StarSetf('calendar') endif -if polyglot#util#IsEnabled('lpc', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'lpc') au BufNewFile,BufRead *.lpc,*.ulpc setf lpc endif -if polyglot#util#IsEnabled('bsdl', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'bsdl') au BufNewFile,BufRead *.bsdl,*bsd setf bsdl endif -if polyglot#util#IsEnabled('blank', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'blank') au BufNewFile,BufRead *.bl setf blank endif -if polyglot#util#IsEnabled('bindzone', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'bindzone') au BufNewFile,BufRead named.root setf bindzone au BufNewFile,BufRead */named/db.* call s:StarSetf('bindzone') au BufNewFile,BufRead */bind/db.* call s:StarSetf('bindzone') endif -if polyglot#util#IsEnabled('named', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'named') au BufNewFile,BufRead named*.conf,rndc*.conf,rndc*.key setf named endif -if polyglot#util#IsEnabled('bst', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'bst') au BufNewFile,BufRead *.bst setf bst endif -if polyglot#util#IsEnabled('bib', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'bib') au BufNewFile,BufRead *.bib setf bib endif -if polyglot#util#IsEnabled('bdf', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'bdf') au BufNewFile,BufRead *.bdf setf bdf endif -if polyglot#util#IsEnabled('bc', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'bc') au BufNewFile,BufRead *.bc setf bc endif -if polyglot#util#IsEnabled('dosbatch', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'dosbatch') au BufNewFile,BufRead *.bat,*.sys setf dosbatch endif -if polyglot#util#IsEnabled('hamster', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'hamster') au BufNewFile,BufRead *.hsc,*.hsm setf hamster endif -if polyglot#util#IsEnabled('freebasic', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'freebasic') au BufNewFile,BufRead *.bi,*.fb setf freebasic endif -if polyglot#util#IsEnabled('ibasic', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'ibasic') au BufNewFile,BufRead *.iba,*.ibi setf ibasic endif -if polyglot#util#IsEnabled('b', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'b') au BufNewFile,BufRead *.imp,*.mch,*.ref setf b endif -if polyglot#util#IsEnabled('sql', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'sql') au BufNewFile,BufRead *.bdy,*.ddl,*.fnc,*.pck,*.pkb,*.pks,*.plb,*.pls,*.plsql,*.prc,*.spc,*.sql,*.tpb,*.tps,*.trg,*.tyb,*.tyc,*.typ,*.vw setf sql endif -if polyglot#util#IsEnabled('gitignore', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'gitignore') au BufNewFile,BufRead *.git/info/exclude,*/.config/git/ignore,{.,}gitignore setf gitignore endif -if polyglot#util#IsEnabled('tads', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'tads') au BufNewFile,BufRead,BufWritePost *.t call polyglot#detect#T() endif -if polyglot#util#IsEnabled('prolog', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'prolog') au BufNewFile,BufRead,BufWritePost *.pl call polyglot#detect#Pl() au BufNewFile,BufRead *.pdb,*.pro,*.prolog,*.yap setf prolog endif -if polyglot#util#IsEnabled('bzl', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'bzl') au BufNewFile,BufRead *.BUILD,*.bazel,*.bzl,BUCK,BUILD,BUILD.bazel,Tiltfile,WORKSPACE setf bzl endif -if polyglot#util#IsEnabled('odin', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'odin') au BufNewFile,BufRead *.odin setf odin endif -if polyglot#util#IsEnabled('dosini', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'dosini') au BufNewFile,BufRead *.dof,*.ini,*.lektorproject,*.prefs,*.pro,*.properties,*/etc/pacman.conf,*/etc/yum.conf,{.,}editorconfig,{.,}npmrc,buildozer.spec setf dosini au BufNewFile,BufRead php.ini-* call s:StarSetf('dosini') au BufNewFile,BufRead */etc/yum.repos.d/* call s:StarSetf('dosini') endif -if polyglot#util#IsEnabled('spec', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'spec') au BufNewFile,BufRead *.spec setf spec endif -if polyglot#util#IsEnabled('visual-basic', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'visual-basic') au BufNewFile,BufRead,BufWritePost *.bas call polyglot#detect#Bas() au BufNewFile,BufRead *.cls,*.ctl,*.dsm,*.frm,*.frx,*.sba,*.vba,*.vbs setf vb endif -if polyglot#util#IsEnabled('basic', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'basic') au BufNewFile,BufRead *.basic setf basic endif -if polyglot#util#IsEnabled('trasys', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'trasys') au BufNewFile,BufRead,BufWritePost *.inp call polyglot#detect#Inp() endif -if polyglot#util#IsEnabled('zig', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'zig') au BufNewFile,BufRead *.zir setf zir au BufNewFile,BufRead *.zig,*.zir setf zig endif -if polyglot#util#IsEnabled('zephir', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'zephir') au BufNewFile,BufRead *.zep setf zephir endif -if polyglot#util#IsEnabled('help', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'help') au BufNewFile,BufRead $VIMRUNTIME/doc/*.txt setf help endif -if polyglot#util#IsEnabled('helm', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'helm') au BufNewFile,BufRead */templates/*.tpl,*/templates/*.yaml setf helm endif -if polyglot#util#IsEnabled('smarty', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'smarty') au BufNewFile,BufRead *.tpl setf smarty endif -if polyglot#util#IsEnabled('ansible', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'ansible') au BufNewFile,BufRead handlers.*.y{a,}ml,local.y{a,}ml,main.y{a,}ml,playbook.y{a,}ml,requirements.y{a,}ml,roles.*.y{a,}ml,site.y{a,}ml,tasks.*.y{a,}ml setf yaml.ansible au BufNewFile,BufRead host_vars/* call s:StarSetf('yaml.ansible') au BufNewFile,BufRead group_vars/* call s:StarSetf('yaml.ansible') endif -if polyglot#util#IsEnabled('xsl', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'xsl') au BufNewFile,BufRead *.xsl,*.xslt setf xsl endif -if polyglot#util#IsEnabled('xdc', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'xdc') au BufNewFile,BufRead *.xdc setf xdc endif -if polyglot#util#IsEnabled('vue', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'vue') au BufNewFile,BufRead *.vue,*.wpy setf vue endif -if polyglot#util#IsEnabled('vmasm', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'vmasm') au BufNewFile,BufRead *.mar setf vmasm endif -if polyglot#util#IsEnabled('velocity', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'velocity') au BufNewFile,BufRead *.vm setf velocity endif -if polyglot#util#IsEnabled('vcl', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'vcl') au BufNewFile,BufRead *.vcl setf vcl endif -if polyglot#util#IsEnabled('vbnet', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'vbnet') au BufNewFile,BufRead *.vb,*.vbhtml setf vbnet endif -if polyglot#util#IsEnabled('vala', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'vala') au BufNewFile,BufRead *.vala,*.valadoc,*.vapi setf vala endif -if polyglot#util#IsEnabled('v', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'v') au BufNewFile,BufRead *.v,*.vsh,*.vv setf vlang endif -if polyglot#util#IsEnabled('unison', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'unison') au BufNewFile,BufRead *.u,*.uu setf unison endif -if polyglot#util#IsEnabled('typescript', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'typescript') au BufNewFile,BufRead *.ts setf typescript au BufNewFile,BufRead *.tsx setf typescriptreact endif -if polyglot#util#IsEnabled('twig', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'twig') au BufNewFile,BufRead *.twig setf html.twig au BufNewFile,BufRead *.xml.twig setf xml.twig endif -if polyglot#util#IsEnabled('tptp', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'tptp') au BufNewFile,BufRead *.ax,*.p,*.tptp setf tptp endif -if polyglot#util#IsEnabled('toml', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'toml') au BufNewFile,BufRead *.toml,*/.cargo/config,*/.cargo/credentials,Cargo.lock,Gopkg.lock,Pipfile,poetry.lock setf toml endif -if polyglot#util#IsEnabled('tmux', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'tmux') au BufNewFile,BufRead {.,}tmux*.conf setf tmux endif -if polyglot#util#IsEnabled('thrift', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'thrift') au BufNewFile,BufRead *.thrift setf thrift endif -if polyglot#util#IsEnabled('textile', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'textile') au BufNewFile,BufRead *.textile setf textile endif -if polyglot#util#IsEnabled('terraform', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'terraform') au BufNewFile,BufRead *.tf,*.tfvars setf terraform endif -if polyglot#util#IsEnabled('tf', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'tf') au BufNewFile,BufRead *.tf,{.,}tfrc,tfrc setf tf endif -if polyglot#util#IsEnabled('systemd', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'systemd') au BufNewFile,BufRead *.automount,*.dnssd,*.link,*.mount,*.netdev,*.network,*.nspawn,*.path,*.service,*.slice,*.socket,*.swap,*.target,*.timer,*/systemd/*.conf setf systemd au BufNewFile,BufRead *.#* call s:StarSetf('systemd') endif -if polyglot#util#IsEnabled('sxhkd', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'sxhkd') au BufNewFile,BufRead *.sxhkdrc,sxhkdrc setf sxhkdrc endif -if polyglot#util#IsEnabled('swift', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'swift') au BufNewFile,BufRead *.swift setf swift endif -if polyglot#util#IsEnabled('svg', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'svg') au BufNewFile,BufRead *.svg setf svg endif -if polyglot#util#IsEnabled('svelte', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'svelte') au BufNewFile,BufRead *.svelte setf svelte endif -if polyglot#util#IsEnabled('stylus', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'stylus') au BufNewFile,BufRead *.styl,*.stylus setf stylus endif -if polyglot#util#IsEnabled('solidity', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'solidity') au BufNewFile,BufRead *.sol setf solidity endif -if polyglot#util#IsEnabled('smt2', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'smt2') au BufNewFile,BufRead *.smt,*.smt2 setf smt2 endif -if polyglot#util#IsEnabled('slime', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'slime') au BufNewFile,BufRead *.slime setf slime endif -if polyglot#util#IsEnabled('slim', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'slim') au BufNewFile,BufRead *.slim setf slim endif -if polyglot#util#IsEnabled('sh', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'sh') au BufNewFile,BufRead *.bash,*.bats,*.cgi,*.command,*.env,*.fcgi,*.ksh,*.sh,*.sh.in,*.tmux,*.tool,*/etc/udev/cdsymlinks.conf,{.,}bash_aliases,{.,}bash_history,{.,}bash_logout,{.,}bash_profile,{.,}bashrc,{.,}cshrc,{.,}env,{.,}env.example,{.,}flaskenv,{.,}login,{.,}profile,9fs,PKGBUILD,bash_aliases,bash_logout,bash_profile,bashrc,cshrc,gradlew,login,man,profile setf sh au BufNewFile,BufRead *.zsh,*/etc/zprofile,{.,}zfbfmarks,{.,}zlogin,{.,}zlogout,{.,}zprofile,{.,}zshenv,{.,}zshrc setf zsh au BufNewFile,BufRead .zsh* call s:StarSetf('zsh') @@ -1895,132 +1926,132 @@ if polyglot#util#IsEnabled('sh', 'ftdetect') au BufNewFile,BufRead .zcompdump* call s:StarSetf('zsh') endif -if polyglot#util#IsEnabled('scss', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'scss') au BufNewFile,BufRead *.scss setf scss endif -if polyglot#util#IsEnabled('scala', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'scala') au BufNewFile,BufRead *.kojo,*.sc,*.scala setf scala endif -if polyglot#util#IsEnabled('rust', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'rust') au BufNewFile,BufRead *.rs,*.rs.in setf rust endif -if polyglot#util#IsEnabled('brewfile', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'brewfile') au BufNewFile,BufRead Brewfile setf brewfile endif -if polyglot#util#IsEnabled('rspec', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'rspec') au BufNewFile,BufRead *_spec.rb set ft=ruby syntax=rspec endif -if polyglot#util#IsEnabled('ruby', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'ruby') au BufNewFile,BufRead *.axlsx,*.builder,*.cap,*.eye,*.fcgi,*.gemspec,*.god,*.jbuilder,*.mspec,*.opal,*.pluginspec,*.podspec,*.rabl,*.rake,*.rant,*.rb,*.rbi,*.rbuild,*.rbw,*.rbx,*.rjs,*.ru,*.ruby,*.rxml,*.spec,*.thor,*.watchr,{.,}Brewfile,{.,}Guardfile,{.,}autotest,{.,}irbrc,{.,}pryrc,{.,}simplecov,Appraisals,Berksfile,Buildfile,Capfile,Cheffile,Dangerfile,Deliverfile,Fastfile,Gemfile,Gemfile.lock,Guardfile,Jarfile,KitchenSink,Mavenfile,Podfile,Puppetfile,Rakefile,Routefile,Snapfile,Thorfile,Vagrantfile,[Rr]antfile,buildfile,vagrantfile setf ruby au BufNewFile,BufRead [Rr]akefile* call s:StarSetf('ruby') au BufNewFile,BufRead *.erb,*.erb.deface,*.rhtml setf eruby endif -if polyglot#util#IsEnabled('rst', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'rst') au BufNewFile,BufRead *.rest,*.rest.txt,*.rst,*.rst.txt setf rst endif -if polyglot#util#IsEnabled('reason', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'reason') au BufNewFile,BufRead,BufWritePost *.re call polyglot#detect#Re() au BufNewFile,BufRead *.rei setf reason endif -if polyglot#util#IsEnabled('razor', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'razor') au BufNewFile,BufRead *.cshtml,*.razor setf razor endif -if polyglot#util#IsEnabled('raml', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'raml') au BufNewFile,BufRead *.raml setf raml endif -if polyglot#util#IsEnabled('raku', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'raku') au BufNewFile,BufRead,BufWritePost *.t call polyglot#detect#T() au BufNewFile,BufRead,BufWritePost *.pm call polyglot#detect#Pm() au BufNewFile,BufRead,BufWritePost *.pl call polyglot#detect#Pl() au BufNewFile,BufRead *.6pl,*.6pm,*.nqp,*.p6,*.p6l,*.p6m,*.pl6,*.pm6,*.pod6,*.raku,*.rakudoc,*.rakumod,*.rakutest,*.t6 setf raku endif -if polyglot#util#IsEnabled('ragel', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'ragel') au BufNewFile,BufRead *.rl setf ragel endif -if polyglot#util#IsEnabled('racket', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'racket') au BufNewFile,BufRead *.rkt,*.rktd,*.rktl,*.scrbl setf racket endif -if polyglot#util#IsEnabled('r-lang', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'r-lang') au BufNewFile,BufRead *.S,*.r,*.rsx,*.s,{.,}Rprofile,expr-dist setf r au BufNewFile,BufRead *.rd setf rhelp endif -if polyglot#util#IsEnabled('qml', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'qml') au BufNewFile,BufRead *.qbs,*.qml setf qml endif -if polyglot#util#IsEnabled('qmake', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'qmake') au BufNewFile,BufRead *.pri,*.pro setf qmake endif -if polyglot#util#IsEnabled('requirements', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'requirements') au BufNewFile,BufRead *.pip,*require.{txt,in},*requirements.{txt,in},constraints.{txt,in} setf requirements endif -if polyglot#util#IsEnabled('python', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'python') au BufNewFile,BufRead *.cgi,*.fcgi,*.gyp,*.gypi,*.lmi,*.ptl,*.py,*.py3,*.pyde,*.pyi,*.pyp,*.pyt,*.pyw,*.rpy,*.smk,*.spec,*.tac,*.wsgi,*.xpy,{.,}gclient,{.,}pythonrc,{.,}pythonstartup,DEPS,SConscript,SConstruct,Snakefile,wscript setf python endif -if polyglot#util#IsEnabled('purescript', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'purescript') au BufNewFile,BufRead *.purs setf purescript endif -if polyglot#util#IsEnabled('puppet', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'puppet') au BufNewFile,BufRead *.pp,Modulefile setf puppet au BufNewFile,BufRead *.epp setf embeddedpuppet endif -if polyglot#util#IsEnabled('pug', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'pug') au BufNewFile,BufRead *.jade,*.pug setf pug endif -if polyglot#util#IsEnabled('protobuf', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'protobuf') au BufNewFile,BufRead *.proto setf proto endif -if polyglot#util#IsEnabled('powershell', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'powershell') au BufNewFile,BufRead *.ps1,*.psd1,*.psm1,*.pssc setf ps1 au BufNewFile,BufRead *.ps1xml setf ps1xml endif -if polyglot#util#IsEnabled('pony', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'pony') au BufNewFile,BufRead *.pony setf pony endif -if polyglot#util#IsEnabled('plantuml', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'plantuml') au BufNewFile,BufRead *.iuml,*.plantuml,*.pu,*.puml,*.uml setf plantuml endif -if polyglot#util#IsEnabled('blade', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'blade') au BufNewFile,BufRead *.blade,*.blade.php setf blade endif -if polyglot#util#IsEnabled('php', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'php') au BufNewFile,BufRead *.aw,*.ctp,*.fcgi,*.inc,*.php,*.php3,*.php4,*.php5,*.php9,*.phps,*.phpt,*.phtml,{.,}php,{.,}php_cs,{.,}php_cs.dist,Phakefile setf php endif -if polyglot#util#IsEnabled('cql', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'cql') au BufNewFile,BufRead *.cql setf cql endif -if polyglot#util#IsEnabled('pgsql', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'pgsql') au BufNewFile,BufRead *.pgsql let b:sql_type_override='pgsql' | set ft=sql endif -if polyglot#util#IsEnabled('perl', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'perl') au BufNewFile,BufRead,BufWritePost *.t call polyglot#detect#T() au BufNewFile,BufRead,BufWritePost *.pm call polyglot#detect#Pm() au BufNewFile,BufRead,BufWritePost *.pl call polyglot#detect#Pl() @@ -2032,20 +2063,20 @@ if polyglot#util#IsEnabled('perl', 'ftdetect') au BufNewFile,BufRead *.xs setf xs endif -if polyglot#util#IsEnabled('rc', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'rc') au BufNewFile,BufRead *.rc,*.rch setf rc endif -if polyglot#util#IsEnabled('opencl', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'opencl') au BufNewFile,BufRead *.cl,*.opencl setf opencl endif -if polyglot#util#IsEnabled('octave', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'octave') au BufNewFile,BufRead,BufWritePost *.m call polyglot#detect#M() au BufNewFile,BufRead *.oct setf octave endif -if polyglot#util#IsEnabled('ocaml', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'ocaml') au BufNewFile,BufRead *.eliom,*.eliomi,*.ml,*.ml.cppo,*.ml4,*.mli,*.mli.cppo,*.mlip,*.mll,*.mlp,*.mlt,*.mly,{.,}ocamlinit setf ocaml au BufNewFile,BufRead *.om,OMakefile,OMakeroot,OMakeroot.in setf omake au BufNewFile,BufRead *.opam,*.opam.template,opam setf opam @@ -2057,48 +2088,48 @@ if polyglot#util#IsEnabled('ocaml', 'ftdetect') au BufNewFile,BufRead *.sexp setf sexplib endif -if polyglot#util#IsEnabled('objc', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'objc') au BufNewFile,BufRead,BufWritePost *.m call polyglot#detect#M() au BufNewFile,BufRead,BufWritePost *.h call polyglot#detect#H() endif -if polyglot#util#IsEnabled('nix', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'nix') au BufNewFile,BufRead *.nix setf nix endif -if polyglot#util#IsEnabled('nim', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'nim') au BufNewFile,BufRead *.nim,*.nim.cfg,*.nimble,*.nimrod,*.nims,nim.cfg setf nim endif -if polyglot#util#IsEnabled('nginx', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'nginx') au BufNewFile,BufRead *.nginx,*.nginxconf,*.vhost,*/nginx/*.conf,*nginx.conf,nginx*.conf,nginx.conf setf nginx au BufNewFile,BufRead */usr/local/nginx/conf/* call s:StarSetf('nginx') au BufNewFile,BufRead */etc/nginx/* call s:StarSetf('nginx') endif -if polyglot#util#IsEnabled('murphi', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'murphi') au BufNewFile,BufRead,BufWritePost *.m call polyglot#detect#M() endif -if polyglot#util#IsEnabled('moonscript', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'moonscript') au BufNewFile,BufRead *.moon setf moon endif -if polyglot#util#IsEnabled('meson', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'meson') au BufNewFile,BufRead meson.build,meson_options.txt setf meson au BufNewFile,BufRead *.wrap setf dosini endif -if polyglot#util#IsEnabled('mdx', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'mdx') au BufNewFile,BufRead *.mdx setf markdown.mdx endif -if polyglot#util#IsEnabled('mathematica', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'mathematica') au BufNewFile,BufRead,BufWritePost *.m call polyglot#detect#M() au BufNewFile,BufRead *.cdf,*.ma,*.mathematica,*.mma,*.mt,*.nb,*.nbp,*.wl,*.wls,*.wlt setf mma endif -if polyglot#util#IsEnabled('mako', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'mako') au BufNewFile,BufRead *.mako,*.mao setf mako au BufReadPre *.*.mao execute "do BufRead filetypedetect " . expand("<afile>:r") | let b:mako_outer_lang = &filetype au BufNewFile *.*.mao execute "do BufNewFile filetypedetect " . expand("<afile>:r") | let b:mako_outer_lang = &filetype @@ -2106,172 +2137,172 @@ if polyglot#util#IsEnabled('mako', 'ftdetect') au BufNewFile *.*.mako execute "do BufNewFile filetypedetect " . expand("<afile>:r") | let b:mako_outer_lang = &filetype endif -if polyglot#util#IsEnabled('m4', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'm4') au BufNewFile,BufRead *.at,*.m4 setf m4 endif -if polyglot#util#IsEnabled('lua', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'lua') au BufNewFile,BufRead *.fcgi,*.lua,*.nse,*.p8,*.pd_lua,*.rbxs,*.rockspec,*.wlua,{.,}luacheckrc setf lua endif -if polyglot#util#IsEnabled('log', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'log') au BufNewFile,BufRead *.LOG,*.log,*_LOG,*_log setf log endif -if polyglot#util#IsEnabled('llvm', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'llvm') au BufNewFile,BufRead *.ll setf llvm au BufNewFile,BufRead *.td setf tablegen endif -if polyglot#util#IsEnabled('livescript', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'livescript') au BufNewFile,BufRead *._ls,*.ls,Slakefile setf livescript endif -if polyglot#util#IsEnabled('lilypond', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'lilypond') au BufNewFile,BufRead *.ily,*.ly setf lilypond endif -if polyglot#util#IsEnabled('less', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'less') au BufNewFile,BufRead *.less setf less endif -if polyglot#util#IsEnabled('ledger', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'ledger') au BufNewFile,BufRead *.journal,*.ldg,*.ledger setf ledger endif -if polyglot#util#IsEnabled('kotlin', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'kotlin') au BufNewFile,BufRead *.kt,*.ktm,*.kts setf kotlin endif -if polyglot#util#IsEnabled('julia', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'julia') au BufNewFile,BufRead *.jl setf julia endif -if polyglot#util#IsEnabled('jst', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'jst') au BufNewFile,BufRead *.ect,*.ejs,*.jst setf jst endif -if polyglot#util#IsEnabled('jsonnet', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'jsonnet') au BufNewFile,BufRead *.jsonnet,*.libsonnet setf jsonnet endif -if polyglot#util#IsEnabled('json', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'json') au BufNewFile,BufRead *.JSON-tmLanguage,*.avsc,*.geojson,*.gltf,*.har,*.ice,*.json,*.jsonl,*.jsonp,*.mcmeta,*.template,*.tfstate,*.tfstate.backup,*.topojson,*.webapp,*.webmanifest,*.yy,*.yyp,{.,}arcconfig,{.,}htmlhintrc,{.,}tern-config,{.,}tern-project,{.,}watchmanconfig,Pipfile.lock,composer.lock,mcmod.info setf json endif -if polyglot#util#IsEnabled('json5', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'json5') au BufNewFile,BufRead *.json5 setf json5 endif -if polyglot#util#IsEnabled('jq', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'jq') au BufNewFile,BufRead *.jq,{.,}jqrc setf jq au BufNewFile,BufRead .jqrc* call s:StarSetf('jq') endif -if polyglot#util#IsEnabled('htmldjango', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'htmldjango') au BufNewFile,BufRead *.j2,*.jinja,*.jinja2,*.njk setf htmldjango endif -if polyglot#util#IsEnabled('jenkins', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'jenkins') au BufNewFile,BufRead *.Jenkinsfile,*.jenkinsfile,Jenkinsfile setf Jenkinsfile au BufNewFile,BufRead Jenkinsfile* call s:StarSetf('Jenkinsfile') endif -if polyglot#util#IsEnabled('ion', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'ion') au BufNewFile,BufRead *.ion,~/.config/ion/initrc setf ion endif -if polyglot#util#IsEnabled('idris2', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'idris2') au BufNewFile,BufRead,BufWritePost *.idr call polyglot#detect#Idr() au BufNewFile,BufRead *.ipkg,idris-response setf idris2 au BufNewFile,BufRead,BufWritePost *.lidr call polyglot#detect#Lidr() endif -if polyglot#util#IsEnabled('idris', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'idris') au BufNewFile,BufRead,BufWritePost *.lidr call polyglot#detect#Lidr() au BufNewFile,BufRead,BufWritePost *.idr call polyglot#detect#Idr() au BufNewFile,BufRead idris-response setf idris endif -if polyglot#util#IsEnabled('icalendar', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'icalendar') au BufNewFile,BufRead *.ics setf icalendar endif -if polyglot#util#IsEnabled('i3', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'i3') au BufNewFile,BufRead *.i3.config,*.i3config,{.,}i3.config,{.,}i3config,i3.config,i3config setf i3config endif -if polyglot#util#IsEnabled('hive', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'hive') au BufNewFile,BufRead *.hql,*.q,*.ql setf hive endif -if polyglot#util#IsEnabled('hcl', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'hcl') au BufNewFile,BufRead *.hcl,*.nomad,*.workflow,Appfile setf hcl endif -if polyglot#util#IsEnabled('haxe', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'haxe') au BufNewFile,BufRead *.hx,*.hxsl setf haxe endif -if polyglot#util#IsEnabled('haskell', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'haskell') au BufNewFile,BufRead *.bpk,*.hs,*.hs-boot,*.hsc,*.hsig setf haskell endif -if polyglot#util#IsEnabled('haproxy', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'haproxy') au BufNewFile,BufRead haproxy*.conf* call s:StarSetf('haproxy') au BufNewFile,BufRead haproxy*.cfg* call s:StarSetf('haproxy') endif -if polyglot#util#IsEnabled('handlebars', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'handlebars') au BufNewFile,BufRead *.hjs,*.hogan,*.hulk,*.mustache setf html.mustache au BufNewFile,BufRead *.handlebars,*.hb,*.hbs,*.hdbs setf html.handlebars endif -if polyglot#util#IsEnabled('haml', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'haml') au BufNewFile,BufRead *.haml,*.haml.deface,*.hamlbars,*.hamlc setf haml endif -if polyglot#util#IsEnabled('grub', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'grub') au BufNewFile,BufRead */boot/grub/grub.conf,*/boot/grub/menu.lst,*/etc/grub.conf setf grub endif -if polyglot#util#IsEnabled('groovy', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'groovy') au BufNewFile,BufRead *.gradle,*.groovy,*.grt,*.gtpl,*.gvy,Jenkinsfile setf groovy endif -if polyglot#util#IsEnabled('graphql', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'graphql') au BufNewFile,BufRead *.gql,*.graphql,*.graphqls setf graphql endif -if polyglot#util#IsEnabled('jsx', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'jsx') au BufNewFile,BufRead *.jsx setf javascriptreact endif -if polyglot#util#IsEnabled('javascript', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'javascript') au BufNewFile,BufRead *._js,*.bones,*.cjs,*.es,*.es6,*.frag,*.gs,*.jake,*.javascript,*.js,*.jsb,*.jscad,*.jsfl,*.jsm,*.jss,*.mjs,*.njs,*.pac,*.sjs,*.ssjs,*.xsjs,*.xsjslib,Jakefile setf javascript au BufNewFile,BufRead *.flow setf flow endif -if polyglot#util#IsEnabled('go', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'go') au BufNewFile,BufRead *.go setf go au BufNewFile,BufRead go.mod setf gomod au BufNewFile,BufRead *.tmpl setf gohtmltmpl endif -if polyglot#util#IsEnabled('gnuplot', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'gnuplot') au BufNewFile,BufRead *.gnu,*.gnuplot,*.gp,*.gpi,*.p,*.plot,*.plt setf gnuplot endif -if polyglot#util#IsEnabled('gmpl', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'gmpl') au BufNewFile,BufRead *.mod setf gmpl endif -if polyglot#util#IsEnabled('glsl', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'glsl') au BufNewFile,BufRead,BufWritePost *.fs call polyglot#detect#Fs() au BufNewFile,BufRead *.comp,*.fp,*.frag,*.frg,*.fsh,*.fshader,*.geo,*.geom,*.glsl,*.glslf,*.glslv,*.gs,*.gshader,*.shader,*.tesc,*.tese,*.vert,*.vrx,*.vsh,*.vshader setf glsl endif -if polyglot#util#IsEnabled('git', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'git') au BufNewFile,BufRead *.gitconfig,*.git/config,*.git/modules/*/config,*/.config/git/config,*/git/config,{.,}gitconfig,{.,}gitmodules setf gitconfig au BufNewFile,BufRead */{.,}gitconfig.d/* call s:StarSetf('gitconfig') au BufNewFile,BufRead git-rebase-todo setf gitrebase @@ -2279,74 +2310,74 @@ if polyglot#util#IsEnabled('git', 'ftdetect') au BufNewFile,BufRead COMMIT_EDITMSG,MERGE_MSG,TAG_EDITMSG setf gitcommit endif -if polyglot#util#IsEnabled('gdscript', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'gdscript') au BufNewFile,BufRead *.gd setf gdscript3 endif -if polyglot#util#IsEnabled('fsharp', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'fsharp') au BufNewFile,BufRead,BufWritePost *.fs call polyglot#detect#Fs() au BufNewFile,BufRead *.fsi,*.fsx setf fsharp endif -if polyglot#util#IsEnabled('forth', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'forth') au BufNewFile,BufRead,BufWritePost *.fs call polyglot#detect#Fs() au BufNewFile,BufRead *.ft,*.fth setf forth endif -if polyglot#util#IsEnabled('flatbuffers', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'flatbuffers') au BufNewFile,BufRead *.fbs setf fbs endif -if polyglot#util#IsEnabled('fish', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'fish') au BufNewFile,BufRead *.fish setf fish endif -if polyglot#util#IsEnabled('ferm', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'ferm') au BufNewFile,BufRead *.ferm,ferm.conf setf ferm endif -if polyglot#util#IsEnabled('fennel', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'fennel') au BufNewFile,BufRead *.fnl setf fennel endif -if polyglot#util#IsEnabled('erlang', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'erlang') au BufNewFile,BufRead *.app,*.app.src,*.erl,*.es,*.escript,*.hrl,*.xrl,*.yaws,*.yrl,Emakefile,rebar.config,rebar.config.lock,rebar.lock setf erlang endif -if polyglot#util#IsEnabled('emblem', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'emblem') au BufNewFile,BufRead *.em,*.emblem setf emblem endif -if polyglot#util#IsEnabled('emberscript', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'emberscript') au BufNewFile,BufRead *.em,*.emberscript setf ember-script endif -if polyglot#util#IsEnabled('elm', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'elm') au BufNewFile,BufRead *.elm setf elm endif -if polyglot#util#IsEnabled('elixir', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'elixir') au BufNewFile,BufRead *.ex,*.exs,mix.lock setf elixir au BufNewFile,BufRead *.eex,*.leex setf eelixir endif -if polyglot#util#IsEnabled('docker-compose', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'docker-compose') au BufNewFile,BufRead docker-compose*.yaml,docker-compose*.yml setf yaml.docker-compose endif -if polyglot#util#IsEnabled('yaml', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'yaml') au BufNewFile,BufRead *.mir,*.reek,*.rviz,*.sublime-syntax,*.syntax,*.yaml,*.yaml-tmlanguage,*.yaml.sed,*.yml,*.yml.mysql,{.,}clang-format,{.,}clang-tidy,{.,}gemrc,fish_history,fish_read_history,glide.lock,yarn.lock setf yaml endif -if polyglot#util#IsEnabled('mysql', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'mysql') au BufNewFile,BufRead *.mysql setf mysql endif -if polyglot#util#IsEnabled('sed', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'sed') au BufNewFile,BufRead *.sed setf sed endif -if polyglot#util#IsEnabled('dlang', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'dlang') au BufNewFile,BufRead *.d,*.di setf d au BufNewFile,BufRead *.lst setf dcov au BufNewFile,BufRead *.dd setf dd @@ -2354,138 +2385,138 @@ if polyglot#util#IsEnabled('dlang', 'ftdetect') au BufNewFile,BufRead *.sdl setf dsdl endif -if polyglot#util#IsEnabled('dhall', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'dhall') au BufNewFile,BufRead *.dhall setf dhall endif -if polyglot#util#IsEnabled('dart', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'dart') au BufNewFile,BufRead *.dart,*.drt setf dart endif -if polyglot#util#IsEnabled('cue', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'cue') au BufNewFile,BufRead *.cue setf cuesheet endif -if polyglot#util#IsEnabled('cucumber', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'cucumber') au BufNewFile,BufRead *.feature,*.story setf cucumber endif -if polyglot#util#IsEnabled('crystal', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'crystal') au BufNewFile,BufRead *.cr,Projectfile setf crystal au BufNewFile,BufRead *.ecr setf ecrystal endif -if polyglot#util#IsEnabled('cryptol', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'cryptol') au BufNewFile,BufRead *.cry,*.cyl,*.lcry,*.lcyl setf cryptol endif -if polyglot#util#IsEnabled('coffee-script', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'coffee-script') au BufNewFile,BufRead *._coffee,*.cake,*.cjsx,*.coffee,*.coffeekup,*.iced,Cakefile setf coffee au BufNewFile,BufRead *.coffee.md,*.litcoffee setf litcoffee endif -if polyglot#util#IsEnabled('markdown', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'markdown') au BufNewFile,BufRead *.markdown,*.md,*.mdown,*.mdwn,*.mkd,*.mkdn,*.mkdown,*.ronn,*.workbook,contents.lr setf markdown endif -if polyglot#util#IsEnabled('cmake', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'cmake') au BufNewFile,BufRead *.cmake,*.cmake.in,CMakeLists.txt setf cmake endif -if polyglot#util#IsEnabled('clojure', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'clojure') au BufNewFile,BufRead *.boot,*.cl2,*.clj,*.cljc,*.cljs,*.cljs.hl,*.cljscm,*.cljx,*.edn,*.hic,build.boot,profile.boot,riemann.config setf clojure endif -if polyglot#util#IsEnabled('carp', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'carp') au BufNewFile,BufRead *.carp setf carp endif -if polyglot#util#IsEnabled('caddyfile', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'caddyfile') au BufNewFile,BufRead Caddyfile setf caddyfile endif -if polyglot#util#IsEnabled('awk', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'awk') au BufNewFile,BufRead *.awk,*.gawk setf awk endif -if polyglot#util#IsEnabled('ave', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'ave') au BufNewFile,BufRead *.ave setf ave endif -if polyglot#util#IsEnabled('autoit', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'autoit') au BufNewFile,BufRead *.au3 setf autoit endif -if polyglot#util#IsEnabled('atlas', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'atlas') au BufNewFile,BufRead *.as,*.atl setf atlas endif -if polyglot#util#IsEnabled('aspperl', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'aspperl') au BufNewFile,BufRead,BufWritePost *.asp call polyglot#detect#Asp() endif -if polyglot#util#IsEnabled('aspvbs', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'aspvbs') au BufNewFile,BufRead,BufWritePost *.asp call polyglot#detect#Asp() au BufNewFile,BufRead,BufWritePost *.asa call polyglot#detect#Asa() endif -if polyglot#util#IsEnabled('asn', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'asn') au BufNewFile,BufRead *.asn,*.asn1 setf asn endif -if polyglot#util#IsEnabled('automake', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'automake') au BufNewFile,BufRead GNUmakefile.am,[mM]akefile.am setf automake endif -if polyglot#util#IsEnabled('elf', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'elf') au BufNewFile,BufRead *.am setf elf endif -if polyglot#util#IsEnabled('make', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'make') au BufNewFile,BufRead *.dsp,*.mak,*.mk,*[mM]akefile setf make endif -if polyglot#util#IsEnabled('autohotkey', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'autohotkey') au BufNewFile,BufRead *.ahk,*.ahkl setf autohotkey endif -if polyglot#util#IsEnabled('asciidoc', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'asciidoc') au BufNewFile,BufRead *.adoc,*.asc,*.asciidoc setf asciidoc endif -if polyglot#util#IsEnabled('art', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'art') au BufNewFile,BufRead *.art setf art endif -if polyglot#util#IsEnabled('arduino', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'arduino') au BufNewFile,BufRead *.ino,*.pde setf arduino endif -if polyglot#util#IsEnabled('c/c++', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'c/c++') au BufNewFile,BufRead,BufWritePost *.h call polyglot#detect#H() au BufNewFile,BufRead *.c++,*.cc,*.cp,*.cpp,*.cxx,*.h++,*.hh,*.hpp,*.hxx,*.inc,*.inl,*.ipp,*.moc,*.tcc,*.tlh,*.tpp setf cpp au BufNewFile,BufRead,BufWritePost *.h call polyglot#detect#H() au BufNewFile,BufRead *.c,*.cats,*.idc,*.qc,*enlightenment/*.cfg setf c endif -if polyglot#util#IsEnabled('arch', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'arch') au BufNewFile,BufRead {.,}arch-inventory,=tagging-method setf arch endif -if polyglot#util#IsEnabled('aptconf', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'aptconf') au BufNewFile,BufRead */.aptitude/config,*/etc/apt/apt.conf.d/*.conf,apt.conf setf aptconf au BufNewFile,BufRead */etc/apt/apt.conf.d/[^.]* call s:StarSetf('aptconf') endif -if polyglot#util#IsEnabled('applescript', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'applescript') au BufNewFile,BufRead *.applescript,*.scpt setf applescript endif -if polyglot#util#IsEnabled('apiblueprint', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'apiblueprint') au BufNewFile,BufRead *.apib setf apiblueprint endif -if polyglot#util#IsEnabled('apache', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'apache') au BufNewFile,BufRead */etc/apache2/sites-*/*.com,*/etc/httpd/*.conf,{.,}htaccess setf apache au BufNewFile,BufRead srm.conf* call s:StarSetf('apache') au BufNewFile,BufRead httpd.conf* call s:StarSetf('apache') @@ -2499,101 +2530,101 @@ if polyglot#util#IsEnabled('apache', 'ftdetect') au BufNewFile,BufRead */etc/apache2/*.conf* call s:StarSetf('apache') endif -if polyglot#util#IsEnabled('ant', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'ant') au BufNewFile,BufRead build.xml setf ant endif -if polyglot#util#IsEnabled('xml', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'xml') au BufNewFile,BufRead *.adml,*.admx,*.ant,*.axml,*.builds,*.ccproj,*.ccxml,*.cdxml,*.clixml,*.cproject,*.cscfg,*.csdef,*.csl,*.csproj,*.csproj.user,*.ct,*.depproj,*.dita,*.ditamap,*.ditaval,*.dll.config,*.dotsettings,*.filters,*.fsproj,*.fxml,*.glade,*.gml,*.gmx,*.grxml,*.gst,*.iml,*.ivy,*.jelly,*.jsproj,*.kml,*.launch,*.mdpolicy,*.mjml,*.mm,*.mod,*.mxml,*.natvis,*.ncl,*.ndproj,*.nproj,*.nuspec,*.odd,*.osm,*.pkgproj,*.pluginspec,*.proj,*.props,*.psc1,*.pt,*.rdf,*.resx,*.rss,*.sch,*.scxml,*.sfproj,*.shproj,*.srdf,*.storyboard,*.sublime-snippet,*.targets,*.tml,*.tpm,*.ui,*.urdf,*.ux,*.vbproj,*.vcxproj,*.vsixmanifest,*.vssettings,*.vstemplate,*.vxml,*.wixproj,*.workflow,*.wpl,*.wsdl,*.wsf,*.wxi,*.wxl,*.wxs,*.x3d,*.xacro,*.xaml,*.xib,*.xlf,*.xliff,*.xmi,*.xml,*.xml.dist,*.xproj,*.xsd,*.xspec,*.xul,*.zcml,*/etc/blkid.tab,*/etc/blkid.tab.old,*/etc/xdg/menus/*.menu,*fglrxrc,{.,}classpath,{.,}cproject,{.,}project,App.config,NuGet.config,Settings.StyleCop,Web.Debug.config,Web.Release.config,Web.config,packages.config setf xml endif -if polyglot#util#IsEnabled('csv', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'csv') au BufNewFile,BufRead *.csv,*.tab,*.tsv setf csv endif -if polyglot#util#IsEnabled('ampl', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'ampl') " AMPL au BufNewFile,BufRead *.run setf ampl endif -if polyglot#util#IsEnabled('aml', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'aml') au BufNewFile,BufRead *.aml setf aml endif -if polyglot#util#IsEnabled('alsaconf', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'alsaconf') au BufNewFile,BufRead */etc/asound.conf,*/usr/share/alsa/alsa.conf,{.,}asoundrc setf alsaconf endif -if polyglot#util#IsEnabled('conf', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'conf') au BufNewFile,BufRead *.conf,*/etc/hosts,auto.master,config setf conf endif -if polyglot#util#IsEnabled('master', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'master') au BufNewFile,BufRead *.mas,*.master setf master endif -if polyglot#util#IsEnabled('aidl', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'aidl') " AIDL au BufNewFile,BufRead *.aidl setf aidl endif -if polyglot#util#IsEnabled('ahdl', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'ahdl') " AHDL au BufNewFile,BufRead *.tdf setf ahdl endif -if polyglot#util#IsEnabled('ada', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'ada') " Ada (83, 9X, 95) au BufNewFile,BufRead *.ada,*.ada_m,*.adb,*.adc,*.ads,*.gpr setf ada endif -if polyglot#util#IsEnabled('acpiasl', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'acpiasl') au BufNewFile,BufRead *.asl,*.dsl setf asl endif -if polyglot#util#IsEnabled('acedb', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'acedb') " AceDB au BufNewFile,BufRead *.wrm setf acedb endif -if polyglot#util#IsEnabled('abel', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'abel') " ABEL au BufNewFile,BufRead *.abl setf abel endif -if polyglot#util#IsEnabled('abc', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'abc') " ABC music notation au BufNewFile,BufRead *.abc setf abc endif -if polyglot#util#IsEnabled('abaqus', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'abaqus') au BufNewFile,BufRead,BufWritePost *.inp call polyglot#detect#Inp() endif -if polyglot#util#IsEnabled('abap', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'abap') " ABAB/4 au BufNewFile,BufRead *.abap setf abap endif -if polyglot#util#IsEnabled('aap', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'aap') " A-A-P recipe au BufNewFile,BufRead *.aap setf aap endif -if polyglot#util#IsEnabled('a65', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'a65') " XA65 MOS6510 cross assembler au BufNewFile,BufRead *.a65 setf a65 endif -if polyglot#util#IsEnabled('a2ps', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'a2ps') au BufNewFile,BufRead */etc/a2ps.cfg,*/etc/a2ps/*.cfg,{.,}a2psrc,a2psrc setf a2ps endif -if polyglot#util#IsEnabled('cfg', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'cfg') au BufNewFile,BufRead *.cfg,*.hgrc,*hgrc setf cfg endif -if polyglot#util#IsEnabled('8th', 'ftdetect') +if !has_key(g:polyglot_is_disabled, '8th') " 8th (Firth-derivative) au BufNewFile,BufRead *.8th setf 8th endif @@ -2620,7 +2651,7 @@ au FileType * au! polyglot-observer augroup END -if polyglot#util#IsEnabled('autoindent', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'autoindent') " Code below re-implements sleuth for vim-polyglot let g:loaded_sleuth = 1 @@ -2858,8 +2889,6 @@ if polyglot#util#IsEnabled('autoindent', 'ftdetect') command! -bar -bang Sleuth call s:detect_indent() endif -au VimEnter * call polyglot#util#Verify() - augroup filetypedetect " Ignored extensions @@ -3461,21 +3490,67 @@ if exists("did_load_filetypes") && exists("g:polyglot_disabled") endif -if polyglot#util#IsEnabled('sensible', 'ftdetect') - " Reload unchanged files automatically. - set autoread +let s:runtime = resolve($VIMRUNTIME) +let s:base = resolve(expand('<sfile>:p:h:h')) - " Disable swap, it doesn't play well with autoread - set noswapfile +func! s:process_rtp(rtp) + " Remove vim-polyglot from paths and make everything absolute + let rtp = [] + for path in a:rtp[1:-2] + let abspath = resolve(path) + if stridx(abspath, s:base) != 0 + call add(rtp, abspath) + endif + endfor + let result = [a:rtp[0]] + " Then all other stuff (until vimruntime) + let i = 0 + for path in rtp[0:-1] + if path == s:runtime + break + endif + call add(result, path) + let i = i + 1 + endfor + " Then vim-polyglot + call add(result, s:base) + " Then all other files, until after-files + for path in rtp[i:-1] + if match(path, '[/\\]after$') > -1 + break + endif + call add(result, path) + let i = i + 1 + endfor + " Then vim-polyglot after path + call add(result, s:base . '/after') + " Then all other after paths + for path in rtp[i:-2] + call add(result, path) + endfor + " User's after directory is always last + call add(result, a:rtp[-1]) + return result +endfunc - " Enable highlighted case-insensitive incremential search. - set incsearch +" We want vim-polyglot files to load only as fallback +let &rtp = join(s:process_rtp(split(&rtp, ',')), ',') +if !has_key(g:polyglot_is_disabled, 'sensible') " Use utf-8 encoding by default set encoding=utf-8 + " Reload unchanged files automatically. + set autoread + + " Disable swap, it doesn't play well with autoread + set noswapfile + " Autoindent when starting new line, or using `o` or `O`. set autoindent + + " Enable highlighted case-insensitive incremential search. + set incsearch endif " Restore 'cpoptions' diff --git a/ftplugin/8th.vim b/ftplugin/8th.vim index 5199a7bf..e5f2f056 100644 --- a/ftplugin/8th.vim +++ b/ftplugin/8th.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('8th', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, '8th') finish endif diff --git a/ftplugin/a2ps.vim b/ftplugin/a2ps.vim index dfcefea7..a247bfb1 100644 --- a/ftplugin/a2ps.vim +++ b/ftplugin/a2ps.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('a2ps', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'a2ps') finish endif diff --git a/ftplugin/aap.vim b/ftplugin/aap.vim index 00588ae9..3e67cc0a 100644 --- a/ftplugin/aap.vim +++ b/ftplugin/aap.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('aap', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'aap') finish endif diff --git a/ftplugin/abap.vim b/ftplugin/abap.vim index eced7b2b..d8041293 100644 --- a/ftplugin/abap.vim +++ b/ftplugin/abap.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('abap', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'abap') finish endif diff --git a/ftplugin/abaqus.vim b/ftplugin/abaqus.vim index fb3bd11e..b800d186 100644 --- a/ftplugin/abaqus.vim +++ b/ftplugin/abaqus.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('abaqus', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'abaqus') finish endif diff --git a/ftplugin/ada.vim b/ftplugin/ada.vim index 62d252fd..2025e9b6 100644 --- a/ftplugin/ada.vim +++ b/ftplugin/ada.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ada', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ada') finish endif diff --git a/ftplugin/alsaconf.vim b/ftplugin/alsaconf.vim index 093c2ab1..2bdbe06c 100644 --- a/ftplugin/alsaconf.vim +++ b/ftplugin/alsaconf.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('alsaconf', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'alsaconf') finish endif diff --git a/ftplugin/ansible.vim b/ftplugin/ansible.vim index e6676ccf..44def562 100644 --- a/ftplugin/ansible.vim +++ b/ftplugin/ansible.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ansible', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ansible') finish endif diff --git a/ftplugin/ansible_hosts.vim b/ftplugin/ansible_hosts.vim index d6854c20..b4f3b665 100644 --- a/ftplugin/ansible_hosts.vim +++ b/ftplugin/ansible_hosts.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ansible', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ansible') finish endif diff --git a/ftplugin/ant.vim b/ftplugin/ant.vim index 799e03ec..e4414e00 100644 --- a/ftplugin/ant.vim +++ b/ftplugin/ant.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ant', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ant') finish endif diff --git a/ftplugin/arch.vim b/ftplugin/arch.vim index 755963a5..288140d6 100644 --- a/ftplugin/arch.vim +++ b/ftplugin/arch.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('arch', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'arch') finish endif diff --git a/ftplugin/art.vim b/ftplugin/art.vim index 7b1c4398..7dd4a1cf 100644 --- a/ftplugin/art.vim +++ b/ftplugin/art.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('art', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'art') finish endif diff --git a/ftplugin/aspvbs.vim b/ftplugin/aspvbs.vim index 03f38e29..86c3d315 100644 --- a/ftplugin/aspvbs.vim +++ b/ftplugin/aspvbs.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('aspvbs', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'aspvbs') finish endif diff --git a/ftplugin/automake.vim b/ftplugin/automake.vim index f3e31757..d7ab44e9 100644 --- a/ftplugin/automake.vim +++ b/ftplugin/automake.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('automake', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'automake') finish endif diff --git a/ftplugin/awk.vim b/ftplugin/awk.vim index 9ff6adf6..13d7acb6 100644 --- a/ftplugin/awk.vim +++ b/ftplugin/awk.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('awk', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'awk') finish endif diff --git a/ftplugin/bdf.vim b/ftplugin/bdf.vim index aaf1def0..7485eb7d 100644 --- a/ftplugin/bdf.vim +++ b/ftplugin/bdf.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('bdf', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'bdf') finish endif diff --git a/ftplugin/blade.vim b/ftplugin/blade.vim index ee75475e..1f88c839 100644 --- a/ftplugin/blade.vim +++ b/ftplugin/blade.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('blade', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'blade') finish endif diff --git a/ftplugin/bst.vim b/ftplugin/bst.vim index 26555cc7..1c150d93 100644 --- a/ftplugin/bst.vim +++ b/ftplugin/bst.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('bst', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'bst') finish endif diff --git a/ftplugin/bzl.vim b/ftplugin/bzl.vim index 71b7ceaa..3d1d22ef 100644 --- a/ftplugin/bzl.vim +++ b/ftplugin/bzl.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('bzl', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'bzl') finish endif diff --git a/ftplugin/caddyfile.vim b/ftplugin/caddyfile.vim index 206ed69e..363fbc56 100644 --- a/ftplugin/caddyfile.vim +++ b/ftplugin/caddyfile.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('caddyfile', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'caddyfile') finish endif diff --git a/ftplugin/calendar.vim b/ftplugin/calendar.vim index 73262759..8952a9b7 100644 --- a/ftplugin/calendar.vim +++ b/ftplugin/calendar.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('calendar', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'calendar') finish endif diff --git a/ftplugin/cdrdaoconf.vim b/ftplugin/cdrdaoconf.vim index 1f6fccdf..ea14cfc4 100644 --- a/ftplugin/cdrdaoconf.vim +++ b/ftplugin/cdrdaoconf.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('cdrdaoconf', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'cdrdaoconf') finish endif diff --git a/ftplugin/cfg.vim b/ftplugin/cfg.vim index 2291a269..db637481 100644 --- a/ftplugin/cfg.vim +++ b/ftplugin/cfg.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('cfg', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'cfg') finish endif diff --git a/ftplugin/ch.vim b/ftplugin/ch.vim index 95865364..8249bbc9 100644 --- a/ftplugin/ch.vim +++ b/ftplugin/ch.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ch', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ch') finish endif diff --git a/ftplugin/clojure.vim b/ftplugin/clojure.vim index 641aaac1..170fc30e 100644 --- a/ftplugin/clojure.vim +++ b/ftplugin/clojure.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('clojure', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'clojure') finish endif diff --git a/ftplugin/cobol.vim b/ftplugin/cobol.vim index 89bb817a..40b0a8e9 100644 --- a/ftplugin/cobol.vim +++ b/ftplugin/cobol.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('cobol', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'cobol') finish endif diff --git a/ftplugin/coffee.vim b/ftplugin/coffee.vim index 9a493b96..f973deb5 100644 --- a/ftplugin/coffee.vim +++ b/ftplugin/coffee.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('coffee-script', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'coffee-script') finish endif diff --git a/ftplugin/conf.vim b/ftplugin/conf.vim index 8ba8a0bd..51fb01fc 100644 --- a/ftplugin/conf.vim +++ b/ftplugin/conf.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('conf', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'conf') finish endif diff --git a/ftplugin/config.vim b/ftplugin/config.vim index dd85e65d..e2fd9605 100644 --- a/ftplugin/config.vim +++ b/ftplugin/config.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('config', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'config') finish endif diff --git a/ftplugin/crm.vim b/ftplugin/crm.vim index 46388ca1..85465223 100644 --- a/ftplugin/crm.vim +++ b/ftplugin/crm.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('crm', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'crm') finish endif diff --git a/ftplugin/cryptol/folding.vim b/ftplugin/cryptol/folding.vim index 717ecadb..865a1e59 100644 --- a/ftplugin/cryptol/folding.vim +++ b/ftplugin/cryptol/folding.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('cryptol', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'cryptol') finish endif diff --git a/ftplugin/crystal.vim b/ftplugin/crystal.vim index 7f391434..76bbb6ad 100644 --- a/ftplugin/crystal.vim +++ b/ftplugin/crystal.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('crystal', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'crystal') finish endif diff --git a/ftplugin/cs.vim b/ftplugin/cs.vim index cfefde11..7dc16fe3 100644 --- a/ftplugin/cs.vim +++ b/ftplugin/cs.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('cs', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'cs') finish endif diff --git a/ftplugin/csc.vim b/ftplugin/csc.vim index a596b93d..40b65687 100644 --- a/ftplugin/csc.vim +++ b/ftplugin/csc.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('csc', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'csc') finish endif diff --git a/ftplugin/css.vim b/ftplugin/css.vim index 6c8a3562..b9446bfd 100644 --- a/ftplugin/css.vim +++ b/ftplugin/css.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('css', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'css') finish endif diff --git a/ftplugin/csv.vim b/ftplugin/csv.vim index f479a6ff..40d3577b 100644 --- a/ftplugin/csv.vim +++ b/ftplugin/csv.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('csv', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'csv') finish endif diff --git a/ftplugin/cucumber.vim b/ftplugin/cucumber.vim index ab1e52fa..c53cb631 100644 --- a/ftplugin/cucumber.vim +++ b/ftplugin/cucumber.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('cucumber', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'cucumber') finish endif diff --git a/ftplugin/cvsrc.vim b/ftplugin/cvsrc.vim index a8049142..6e888f10 100644 --- a/ftplugin/cvsrc.vim +++ b/ftplugin/cvsrc.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('cvsrc', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'cvsrc') finish endif diff --git a/ftplugin/dart.vim b/ftplugin/dart.vim index b402543d..5050378f 100644 --- a/ftplugin/dart.vim +++ b/ftplugin/dart.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('dart', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'dart') finish endif diff --git a/ftplugin/debchangelog.vim b/ftplugin/debchangelog.vim index 13904dc9..746de50b 100644 --- a/ftplugin/debchangelog.vim +++ b/ftplugin/debchangelog.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('debchangelog', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'debchangelog') finish endif diff --git a/ftplugin/debcontrol.vim b/ftplugin/debcontrol.vim index e6109e73..c4307414 100644 --- a/ftplugin/debcontrol.vim +++ b/ftplugin/debcontrol.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('debcontrol', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'debcontrol') finish endif diff --git a/ftplugin/denyhosts.vim b/ftplugin/denyhosts.vim index 41a54a12..bda92b12 100644 --- a/ftplugin/denyhosts.vim +++ b/ftplugin/denyhosts.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('denyhosts', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'denyhosts') finish endif diff --git a/ftplugin/dhall.vim b/ftplugin/dhall.vim index d0a702ea..1b90832c 100644 --- a/ftplugin/dhall.vim +++ b/ftplugin/dhall.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('dhall', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'dhall') finish endif diff --git a/ftplugin/dictconf.vim b/ftplugin/dictconf.vim index 048a4918..d56fa358 100644 --- a/ftplugin/dictconf.vim +++ b/ftplugin/dictconf.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('dictconf', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'dictconf') finish endif diff --git a/ftplugin/dictdconf.vim b/ftplugin/dictdconf.vim index 6b3c1174..b05d7520 100644 --- a/ftplugin/dictdconf.vim +++ b/ftplugin/dictdconf.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('dictdconf', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'dictdconf') finish endif diff --git a/ftplugin/diff.vim b/ftplugin/diff.vim index 7a04c881..4343638c 100644 --- a/ftplugin/diff.vim +++ b/ftplugin/diff.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('diff', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'diff') finish endif diff --git a/ftplugin/dircolors.vim b/ftplugin/dircolors.vim index 1ae60648..92df4c03 100644 --- a/ftplugin/dircolors.vim +++ b/ftplugin/dircolors.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('dircolors', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'dircolors') finish endif diff --git a/ftplugin/docker-compose.vim b/ftplugin/docker-compose.vim index 89cc8647..32c91d53 100644 --- a/ftplugin/docker-compose.vim +++ b/ftplugin/docker-compose.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('docker-compose', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'docker-compose') finish endif diff --git a/ftplugin/dockerfile.vim b/ftplugin/dockerfile.vim index 62d99f39..79388fb0 100644 --- a/ftplugin/dockerfile.vim +++ b/ftplugin/dockerfile.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('dockerfile', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'dockerfile') finish endif diff --git a/ftplugin/dosbatch.vim b/ftplugin/dosbatch.vim index 902ed8f7..434f5772 100644 --- a/ftplugin/dosbatch.vim +++ b/ftplugin/dosbatch.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('dosbatch', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'dosbatch') finish endif diff --git a/ftplugin/dosini.vim b/ftplugin/dosini.vim index 394b98bd..1f9c8289 100644 --- a/ftplugin/dosini.vim +++ b/ftplugin/dosini.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('dosini', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'dosini') finish endif diff --git a/ftplugin/dtd.vim b/ftplugin/dtd.vim index d428a845..d8f2aa22 100644 --- a/ftplugin/dtd.vim +++ b/ftplugin/dtd.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('dtd', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'dtd') finish endif diff --git a/ftplugin/dune.vim b/ftplugin/dune.vim index 4454e1d2..9bd424c8 100644 --- a/ftplugin/dune.vim +++ b/ftplugin/dune.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ocaml', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ocaml') finish endif diff --git a/ftplugin/ecrystal.vim b/ftplugin/ecrystal.vim index 5057546d..81d0fad7 100644 --- a/ftplugin/ecrystal.vim +++ b/ftplugin/ecrystal.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('crystal', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'crystal') finish endif diff --git a/ftplugin/eelixir.vim b/ftplugin/eelixir.vim index 914a5d70..1b337f58 100644 --- a/ftplugin/eelixir.vim +++ b/ftplugin/eelixir.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('elixir', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'elixir') finish endif diff --git a/ftplugin/elinks.vim b/ftplugin/elinks.vim index ca68f847..3288cc53 100644 --- a/ftplugin/elinks.vim +++ b/ftplugin/elinks.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('elinks', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'elinks') finish endif diff --git a/ftplugin/elixir.vim b/ftplugin/elixir.vim index d16a45d8..04fd66a1 100644 --- a/ftplugin/elixir.vim +++ b/ftplugin/elixir.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('elixir', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'elixir') finish endif diff --git a/ftplugin/embeddedpuppet.vim b/ftplugin/embeddedpuppet.vim index 344e93ae..e7da63d2 100644 --- a/ftplugin/embeddedpuppet.vim +++ b/ftplugin/embeddedpuppet.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('puppet', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'puppet') finish endif diff --git a/ftplugin/ember-script.vim b/ftplugin/ember-script.vim index 792e3886..3180ea72 100644 --- a/ftplugin/ember-script.vim +++ b/ftplugin/ember-script.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('emberscript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'emberscript') finish endif diff --git a/ftplugin/emblem.vim b/ftplugin/emblem.vim index 3351f533..9e102c0b 100644 --- a/ftplugin/emblem.vim +++ b/ftplugin/emblem.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('emblem', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'emblem') finish endif diff --git a/ftplugin/eruby.vim b/ftplugin/eruby.vim index f6a8e659..af741579 100644 --- a/ftplugin/eruby.vim +++ b/ftplugin/eruby.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ruby', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ruby') finish endif diff --git a/ftplugin/eterm.vim b/ftplugin/eterm.vim index fc163ccf..d121fdf3 100644 --- a/ftplugin/eterm.vim +++ b/ftplugin/eterm.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('eterm', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'eterm') finish endif diff --git a/ftplugin/falcon.vim b/ftplugin/falcon.vim index 5eeab00f..727fcfcb 100644 --- a/ftplugin/falcon.vim +++ b/ftplugin/falcon.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('falcon', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'falcon') finish endif diff --git a/ftplugin/fennel.vim b/ftplugin/fennel.vim index 926bc879..1cbb2d33 100644 --- a/ftplugin/fennel.vim +++ b/ftplugin/fennel.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('fennel', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'fennel') finish endif diff --git a/ftplugin/fetchmail.vim b/ftplugin/fetchmail.vim index eaaf3e25..8b86ea1a 100644 --- a/ftplugin/fetchmail.vim +++ b/ftplugin/fetchmail.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('fetchmail', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'fetchmail') finish endif diff --git a/ftplugin/fish.vim b/ftplugin/fish.vim index 8ead1ce3..88f6a275 100644 --- a/ftplugin/fish.vim +++ b/ftplugin/fish.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('fish', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'fish') finish endif diff --git a/ftplugin/fortran.vim b/ftplugin/fortran.vim index b951347c..a4ae9ade 100644 --- a/ftplugin/fortran.vim +++ b/ftplugin/fortran.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('fortran', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'fortran') finish endif diff --git a/ftplugin/framescript.vim b/ftplugin/framescript.vim index 514f3c94..f3ae6481 100644 --- a/ftplugin/framescript.vim +++ b/ftplugin/framescript.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('framescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'framescript') finish endif diff --git a/ftplugin/fvwm.vim b/ftplugin/fvwm.vim index 0f6de2db..ed3fb40d 100644 --- a/ftplugin/fvwm.vim +++ b/ftplugin/fvwm.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('fvwm', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'fvwm') finish endif diff --git a/ftplugin/gdb.vim b/ftplugin/gdb.vim index 03fe2565..655fb601 100644 --- a/ftplugin/gdb.vim +++ b/ftplugin/gdb.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('gdb', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'gdb') finish endif diff --git a/ftplugin/git.vim b/ftplugin/git.vim index 13ae96b6..2b907e52 100644 --- a/ftplugin/git.vim +++ b/ftplugin/git.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('git', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'git') finish endif diff --git a/ftplugin/gitcommit.vim b/ftplugin/gitcommit.vim index 47f82b17..026f898e 100644 --- a/ftplugin/gitcommit.vim +++ b/ftplugin/gitcommit.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('git', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'git') finish endif diff --git a/ftplugin/gitconfig.vim b/ftplugin/gitconfig.vim index 44f66a29..2d98aaf7 100644 --- a/ftplugin/gitconfig.vim +++ b/ftplugin/gitconfig.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('git', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'git') finish endif diff --git a/ftplugin/gitignore.vim b/ftplugin/gitignore.vim index 48495472..bfb85702 100644 --- a/ftplugin/gitignore.vim +++ b/ftplugin/gitignore.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('gitignore', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'gitignore') finish endif diff --git a/ftplugin/gitrebase.vim b/ftplugin/gitrebase.vim index c07554e0..524663c7 100644 --- a/ftplugin/gitrebase.vim +++ b/ftplugin/gitrebase.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('git', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'git') finish endif diff --git a/ftplugin/gitsendemail.vim b/ftplugin/gitsendemail.vim index a8e26995..44be6a7d 100644 --- a/ftplugin/gitsendemail.vim +++ b/ftplugin/gitsendemail.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('git', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'git') finish endif diff --git a/ftplugin/gpg.vim b/ftplugin/gpg.vim index 9089768c..f6e93491 100644 --- a/ftplugin/gpg.vim +++ b/ftplugin/gpg.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('gpg', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'gpg') finish endif diff --git a/ftplugin/graphql.vim b/ftplugin/graphql.vim index 56b29f89..177df479 100644 --- a/ftplugin/graphql.vim +++ b/ftplugin/graphql.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('graphql', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'graphql') finish endif diff --git a/ftplugin/groovy.vim b/ftplugin/groovy.vim index cf78a14e..d87b3d56 100644 --- a/ftplugin/groovy.vim +++ b/ftplugin/groovy.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('groovy', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'groovy') finish endif diff --git a/ftplugin/group.vim b/ftplugin/group.vim index 357f43cf..2a275831 100644 --- a/ftplugin/group.vim +++ b/ftplugin/group.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('group', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'group') finish endif diff --git a/ftplugin/grub.vim b/ftplugin/grub.vim index d707032b..b354f033 100644 --- a/ftplugin/grub.vim +++ b/ftplugin/grub.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('grub', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'grub') finish endif diff --git a/ftplugin/haml.vim b/ftplugin/haml.vim index 95b57af6..e5f02049 100644 --- a/ftplugin/haml.vim +++ b/ftplugin/haml.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('haml', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'haml') finish endif diff --git a/ftplugin/hamster.vim b/ftplugin/hamster.vim index 78077433..bb8c36e7 100644 --- a/ftplugin/hamster.vim +++ b/ftplugin/hamster.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('hamster', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'hamster') finish endif diff --git a/ftplugin/handlebars.vim b/ftplugin/handlebars.vim index 0ebcc9b7..bbe46ea4 100644 --- a/ftplugin/handlebars.vim +++ b/ftplugin/handlebars.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('handlebars', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'handlebars') finish endif diff --git a/ftplugin/hcl.vim b/ftplugin/hcl.vim index 8c55f9a5..8d059044 100644 --- a/ftplugin/hcl.vim +++ b/ftplugin/hcl.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('hcl', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'hcl') finish endif diff --git a/ftplugin/help.vim b/ftplugin/help.vim index dcb63826..18d1498e 100644 --- a/ftplugin/help.vim +++ b/ftplugin/help.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('help', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'help') finish endif diff --git a/ftplugin/hgcommit.vim b/ftplugin/hgcommit.vim index d101a625..a297f006 100644 --- a/ftplugin/hgcommit.vim +++ b/ftplugin/hgcommit.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('hgcommit', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'hgcommit') finish endif diff --git a/ftplugin/hive.vim b/ftplugin/hive.vim index e1fe2dff..0e9cfd8e 100644 --- a/ftplugin/hive.vim +++ b/ftplugin/hive.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('hive', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'hive') finish endif diff --git a/ftplugin/hog.vim b/ftplugin/hog.vim index 4b198d70..62c42f7e 100644 --- a/ftplugin/hog.vim +++ b/ftplugin/hog.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('hog', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'hog') finish endif diff --git a/ftplugin/hostconf.vim b/ftplugin/hostconf.vim index bb680b8e..12694017 100644 --- a/ftplugin/hostconf.vim +++ b/ftplugin/hostconf.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('hostconf', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'hostconf') finish endif diff --git a/ftplugin/hostsaccess.vim b/ftplugin/hostsaccess.vim index 1617577b..9c12ca31 100644 --- a/ftplugin/hostsaccess.vim +++ b/ftplugin/hostsaccess.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('hostsaccess', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'hostsaccess') finish endif diff --git a/ftplugin/html.vim b/ftplugin/html.vim index b48d0cd7..41416079 100644 --- a/ftplugin/html.vim +++ b/ftplugin/html.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('html', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'html') finish endif diff --git a/ftplugin/htmldjango.vim b/ftplugin/htmldjango.vim index 6da812a4..deaa50c4 100644 --- a/ftplugin/htmldjango.vim +++ b/ftplugin/htmldjango.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('htmldjango', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'htmldjango') finish endif diff --git a/ftplugin/i3config.vim b/ftplugin/i3config.vim index dc4182fb..dfdbbeb3 100644 --- a/ftplugin/i3config.vim +++ b/ftplugin/i3config.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('i3', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'i3') finish endif diff --git a/ftplugin/idris.vim b/ftplugin/idris.vim index f3201a08..994ac63e 100644 --- a/ftplugin/idris.vim +++ b/ftplugin/idris.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('idris', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'idris') finish endif diff --git a/ftplugin/idris2.vim b/ftplugin/idris2.vim index 97337057..5596bbbd 100644 --- a/ftplugin/idris2.vim +++ b/ftplugin/idris2.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('idris2', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'idris2') finish endif diff --git a/ftplugin/indent.vim b/ftplugin/indent.vim index d3ee4f74..96cc9a10 100644 --- a/ftplugin/indent.vim +++ b/ftplugin/indent.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('indent', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'indent') finish endif diff --git a/ftplugin/ion.vim b/ftplugin/ion.vim index 8835e291..7401d0b5 100644 --- a/ftplugin/ion.vim +++ b/ftplugin/ion.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ion', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ion') finish endif diff --git a/ftplugin/j.vim b/ftplugin/j.vim index 4b4669ff..62b60ed3 100644 --- a/ftplugin/j.vim +++ b/ftplugin/j.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('j', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'j') finish endif diff --git a/ftplugin/java.vim b/ftplugin/java.vim index 5a7dc9e0..ec8d4f5b 100644 --- a/ftplugin/java.vim +++ b/ftplugin/java.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('java', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'java') finish endif diff --git a/ftplugin/jproperties.vim b/ftplugin/jproperties.vim index b67a00c3..a0a2152d 100644 --- a/ftplugin/jproperties.vim +++ b/ftplugin/jproperties.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('jproperties', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'jproperties') finish endif diff --git a/ftplugin/jq.vim b/ftplugin/jq.vim index ae05d442..cfabd2cb 100644 --- a/ftplugin/jq.vim +++ b/ftplugin/jq.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('jq', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'jq') finish endif diff --git a/ftplugin/json.vim b/ftplugin/json.vim index f55b4b0a..22eaa506 100644 --- a/ftplugin/json.vim +++ b/ftplugin/json.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('json', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'json') finish endif diff --git a/ftplugin/jsonnet.vim b/ftplugin/jsonnet.vim index 00dcfb7c..aff7d880 100644 --- a/ftplugin/jsonnet.vim +++ b/ftplugin/jsonnet.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('jsonnet', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'jsonnet') finish endif diff --git a/ftplugin/jsp.vim b/ftplugin/jsp.vim index 68e9e03b..9de79fd2 100644 --- a/ftplugin/jsp.vim +++ b/ftplugin/jsp.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('jsp', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'jsp') finish endif diff --git a/ftplugin/julia.vim b/ftplugin/julia.vim index cc353099..2416e388 100644 --- a/ftplugin/julia.vim +++ b/ftplugin/julia.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('julia', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'julia') finish endif diff --git a/ftplugin/juliadoc.vim b/ftplugin/juliadoc.vim index d961f697..b5fd1f1e 100644 --- a/ftplugin/juliadoc.vim +++ b/ftplugin/juliadoc.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('julia', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'julia') finish endif diff --git a/ftplugin/kconfig.vim b/ftplugin/kconfig.vim index a02b473a..c0ed7509 100644 --- a/ftplugin/kconfig.vim +++ b/ftplugin/kconfig.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('kconfig', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'kconfig') finish endif diff --git a/ftplugin/kotlin.vim b/ftplugin/kotlin.vim index 5e04d995..a9aee55b 100644 --- a/ftplugin/kotlin.vim +++ b/ftplugin/kotlin.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('kotlin', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'kotlin') finish endif diff --git a/ftplugin/kwt.vim b/ftplugin/kwt.vim index 2a546459..89c914ee 100644 --- a/ftplugin/kwt.vim +++ b/ftplugin/kwt.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('kwt', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'kwt') finish endif diff --git a/ftplugin/ld.vim b/ftplugin/ld.vim index a748663c..5de5b71a 100644 --- a/ftplugin/ld.vim +++ b/ftplugin/ld.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ld', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ld') finish endif diff --git a/ftplugin/less.vim b/ftplugin/less.vim index 87b66ecf..4946b22c 100644 --- a/ftplugin/less.vim +++ b/ftplugin/less.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('less', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'less') finish endif diff --git a/ftplugin/lftp.vim b/ftplugin/lftp.vim index 0088fab0..a5fa4dcd 100644 --- a/ftplugin/lftp.vim +++ b/ftplugin/lftp.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('lftp', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'lftp') finish endif diff --git a/ftplugin/libao.vim b/ftplugin/libao.vim index 9829dfa1..49700d8f 100644 --- a/ftplugin/libao.vim +++ b/ftplugin/libao.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('libao', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'libao') finish endif diff --git a/ftplugin/lilypond.vim b/ftplugin/lilypond.vim index 21b38497..5963cdaf 100644 --- a/ftplugin/lilypond.vim +++ b/ftplugin/lilypond.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('lilypond', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'lilypond') finish endif diff --git a/ftplugin/limits.vim b/ftplugin/limits.vim index 82828bb2..db9fd757 100644 --- a/ftplugin/limits.vim +++ b/ftplugin/limits.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('limits', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'limits') finish endif diff --git a/ftplugin/liquid.vim b/ftplugin/liquid.vim index 1b8a5d05..4eaa8094 100644 --- a/ftplugin/liquid.vim +++ b/ftplugin/liquid.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('liquid', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'liquid') finish endif diff --git a/ftplugin/lisp.vim b/ftplugin/lisp.vim index c6b097b1..5425a34c 100644 --- a/ftplugin/lisp.vim +++ b/ftplugin/lisp.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('lisp', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'lisp') finish endif diff --git a/ftplugin/litcoffee.vim b/ftplugin/litcoffee.vim index 75af16cd..622b368d 100644 --- a/ftplugin/litcoffee.vim +++ b/ftplugin/litcoffee.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('coffee-script', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'coffee-script') finish endif diff --git a/ftplugin/llvm.vim b/ftplugin/llvm.vim index 67da6358..a21fe96d 100644 --- a/ftplugin/llvm.vim +++ b/ftplugin/llvm.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('llvm', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'llvm') finish endif diff --git a/ftplugin/logcheck.vim b/ftplugin/logcheck.vim index c69142ae..eb009fc2 100644 --- a/ftplugin/logcheck.vim +++ b/ftplugin/logcheck.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('logcheck', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'logcheck') finish endif diff --git a/ftplugin/loginaccess.vim b/ftplugin/loginaccess.vim index 5ad28b4c..028ebd5e 100644 --- a/ftplugin/loginaccess.vim +++ b/ftplugin/loginaccess.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('loginaccess', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'loginaccess') finish endif diff --git a/ftplugin/logindefs.vim b/ftplugin/logindefs.vim index 5c8f91d8..8c615834 100644 --- a/ftplugin/logindefs.vim +++ b/ftplugin/logindefs.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('logindefs', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'logindefs') finish endif diff --git a/ftplugin/logtalk.vim b/ftplugin/logtalk.vim index 2c75d4b5..d672350f 100644 --- a/ftplugin/logtalk.vim +++ b/ftplugin/logtalk.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('logtalk', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'logtalk') finish endif diff --git a/ftplugin/lprolog.vim b/ftplugin/lprolog.vim index ca24c8d5..1ed7120d 100644 --- a/ftplugin/lprolog.vim +++ b/ftplugin/lprolog.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('lprolog', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'lprolog') finish endif diff --git a/ftplugin/ls.vim b/ftplugin/ls.vim index 98542222..51fb7fb8 100644 --- a/ftplugin/ls.vim +++ b/ftplugin/ls.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('livescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'livescript') finish endif diff --git a/ftplugin/m4.vim b/ftplugin/m4.vim index 51c935ae..9cd3bfed 100644 --- a/ftplugin/m4.vim +++ b/ftplugin/m4.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('m4', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'm4') finish endif diff --git a/ftplugin/mail.vim b/ftplugin/mail.vim index eb2bf8b4..132f3b77 100644 --- a/ftplugin/mail.vim +++ b/ftplugin/mail.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('mail', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'mail') finish endif diff --git a/ftplugin/mailaliases.vim b/ftplugin/mailaliases.vim index 7fd68c4a..9b04c535 100644 --- a/ftplugin/mailaliases.vim +++ b/ftplugin/mailaliases.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('mailaliases', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'mailaliases') finish endif diff --git a/ftplugin/mailcap.vim b/ftplugin/mailcap.vim index a47cf59c..591414fa 100644 --- a/ftplugin/mailcap.vim +++ b/ftplugin/mailcap.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('mailcap', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'mailcap') finish endif diff --git a/ftplugin/make.vim b/ftplugin/make.vim index 02b0e320..f52a8491 100644 --- a/ftplugin/make.vim +++ b/ftplugin/make.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('make', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'make') finish endif diff --git a/ftplugin/mako.vim b/ftplugin/mako.vim index c68d6d67..f26d03ec 100644 --- a/ftplugin/mako.vim +++ b/ftplugin/mako.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('mako', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'mako') finish endif diff --git a/ftplugin/manconf.vim b/ftplugin/manconf.vim index 51490f66..5f3acd95 100644 --- a/ftplugin/manconf.vim +++ b/ftplugin/manconf.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('manconf', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'manconf') finish endif diff --git a/ftplugin/markdown.vim b/ftplugin/markdown.vim index 03530bc9..a175f7ed 100644 --- a/ftplugin/markdown.vim +++ b/ftplugin/markdown.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('markdown', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'markdown') finish endif diff --git a/ftplugin/meson.vim b/ftplugin/meson.vim index 75c9d90d..0a3971f4 100644 --- a/ftplugin/meson.vim +++ b/ftplugin/meson.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('meson', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'meson') finish endif diff --git a/ftplugin/mf.vim b/ftplugin/mf.vim index 06af3469..c6611670 100644 --- a/ftplugin/mf.vim +++ b/ftplugin/mf.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('mf', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'mf') finish endif diff --git a/ftplugin/mma.vim b/ftplugin/mma.vim index 2dc9cd61..7c50bbd2 100644 --- a/ftplugin/mma.vim +++ b/ftplugin/mma.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('mathematica', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'mathematica') finish endif diff --git a/ftplugin/modconf.vim b/ftplugin/modconf.vim index 26eb4a88..e47b54e2 100644 --- a/ftplugin/modconf.vim +++ b/ftplugin/modconf.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('modconf', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'modconf') finish endif diff --git a/ftplugin/moon.vim b/ftplugin/moon.vim index a4c0140f..edfeccb3 100644 --- a/ftplugin/moon.vim +++ b/ftplugin/moon.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('moonscript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'moonscript') finish endif diff --git a/ftplugin/mp.vim b/ftplugin/mp.vim index d73c51ac..1817ef3c 100644 --- a/ftplugin/mp.vim +++ b/ftplugin/mp.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('mp', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'mp') finish endif diff --git a/ftplugin/mplayerconf.vim b/ftplugin/mplayerconf.vim index 34166238..92b00892 100644 --- a/ftplugin/mplayerconf.vim +++ b/ftplugin/mplayerconf.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('mplayerconf', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'mplayerconf') finish endif diff --git a/ftplugin/mrxvtrc.vim b/ftplugin/mrxvtrc.vim index 6af76527..88c422ea 100644 --- a/ftplugin/mrxvtrc.vim +++ b/ftplugin/mrxvtrc.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('mrxvtrc', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'mrxvtrc') finish endif diff --git a/ftplugin/mustache.vim b/ftplugin/mustache.vim index c494c195..a9bfced5 100644 --- a/ftplugin/mustache.vim +++ b/ftplugin/mustache.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('handlebars', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'handlebars') finish endif diff --git a/ftplugin/muttrc.vim b/ftplugin/muttrc.vim index cd4321be..1a21184b 100644 --- a/ftplugin/muttrc.vim +++ b/ftplugin/muttrc.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('muttrc', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'muttrc') finish endif diff --git a/ftplugin/nanorc.vim b/ftplugin/nanorc.vim index f558d671..e7e37557 100644 --- a/ftplugin/nanorc.vim +++ b/ftplugin/nanorc.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('nanorc', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'nanorc') finish endif diff --git a/ftplugin/neomuttrc.vim b/ftplugin/neomuttrc.vim index a20c2c4d..2d2739a1 100644 --- a/ftplugin/neomuttrc.vim +++ b/ftplugin/neomuttrc.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('neomuttrc', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'neomuttrc') finish endif diff --git a/ftplugin/netrc.vim b/ftplugin/netrc.vim index 73eeeee1..d60f0174 100644 --- a/ftplugin/netrc.vim +++ b/ftplugin/netrc.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('netrc', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'netrc') finish endif diff --git a/ftplugin/nginx.vim b/ftplugin/nginx.vim index 4befc51b..464b898a 100644 --- a/ftplugin/nginx.vim +++ b/ftplugin/nginx.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('nginx', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'nginx') finish endif diff --git a/ftplugin/nix.vim b/ftplugin/nix.vim index 9b998729..b8d6f5ec 100644 --- a/ftplugin/nix.vim +++ b/ftplugin/nix.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('nix', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'nix') finish endif diff --git a/ftplugin/nroff.vim b/ftplugin/nroff.vim index 1d56daa9..f7e29ce2 100644 --- a/ftplugin/nroff.vim +++ b/ftplugin/nroff.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('nroff', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'nroff') finish endif diff --git a/ftplugin/nsis.vim b/ftplugin/nsis.vim index 697f2d67..12254f92 100644 --- a/ftplugin/nsis.vim +++ b/ftplugin/nsis.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('nsis', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'nsis') finish endif diff --git a/ftplugin/oasis.vim b/ftplugin/oasis.vim index cfe932fe..0066807e 100644 --- a/ftplugin/oasis.vim +++ b/ftplugin/oasis.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ocaml', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ocaml') finish endif diff --git a/ftplugin/objc.vim b/ftplugin/objc.vim index 2d108e5b..1ba3e633 100644 --- a/ftplugin/objc.vim +++ b/ftplugin/objc.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('objc', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'objc') finish endif diff --git a/ftplugin/ocaml.vim b/ftplugin/ocaml.vim index d9e56533..b5859598 100644 --- a/ftplugin/ocaml.vim +++ b/ftplugin/ocaml.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ocaml', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ocaml') finish endif diff --git a/ftplugin/ocamlbuild_tags.vim b/ftplugin/ocamlbuild_tags.vim index cfe932fe..0066807e 100644 --- a/ftplugin/ocamlbuild_tags.vim +++ b/ftplugin/ocamlbuild_tags.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ocaml', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ocaml') finish endif diff --git a/ftplugin/occam.vim b/ftplugin/occam.vim index 766c71fb..f8fb78cc 100644 --- a/ftplugin/occam.vim +++ b/ftplugin/occam.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('occam', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'occam') finish endif diff --git a/ftplugin/omake.vim b/ftplugin/omake.vim index e75e09b3..10669285 100644 --- a/ftplugin/omake.vim +++ b/ftplugin/omake.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ocaml', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ocaml') finish endif diff --git a/ftplugin/opencl.vim b/ftplugin/opencl.vim index ab894361..c15c0627 100644 --- a/ftplugin/opencl.vim +++ b/ftplugin/opencl.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('opencl', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'opencl') finish endif diff --git a/ftplugin/pamconf.vim b/ftplugin/pamconf.vim index 09dada12..f6867e46 100644 --- a/ftplugin/pamconf.vim +++ b/ftplugin/pamconf.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('pamconf', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'pamconf') finish endif diff --git a/ftplugin/pascal.vim b/ftplugin/pascal.vim index 542343da..4546ed74 100644 --- a/ftplugin/pascal.vim +++ b/ftplugin/pascal.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('pascal', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'pascal') finish endif diff --git a/ftplugin/passwd.vim b/ftplugin/passwd.vim index 70aa41c2..a963340d 100644 --- a/ftplugin/passwd.vim +++ b/ftplugin/passwd.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('passwd', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'passwd') finish endif diff --git a/ftplugin/pdf.vim b/ftplugin/pdf.vim index bf637d0f..882cdd2c 100644 --- a/ftplugin/pdf.vim +++ b/ftplugin/pdf.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('pdf', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'pdf') finish endif diff --git a/ftplugin/perl.vim b/ftplugin/perl.vim index 33475a85..69657fef 100644 --- a/ftplugin/perl.vim +++ b/ftplugin/perl.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('perl', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'perl') finish endif diff --git a/ftplugin/pinfo.vim b/ftplugin/pinfo.vim index 72ed6b95..aafc6938 100644 --- a/ftplugin/pinfo.vim +++ b/ftplugin/pinfo.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('pinfo', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'pinfo') finish endif diff --git a/ftplugin/plantuml.vim b/ftplugin/plantuml.vim index 5146b243..88ec433c 100644 --- a/ftplugin/plantuml.vim +++ b/ftplugin/plantuml.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('plantuml', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'plantuml') finish endif diff --git a/ftplugin/pony.vim b/ftplugin/pony.vim index 7d2d684e..7a6cb9cf 100644 --- a/ftplugin/pony.vim +++ b/ftplugin/pony.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('pony', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'pony') finish endif diff --git a/ftplugin/postscr.vim b/ftplugin/postscr.vim index e2926fb0..84345a67 100644 --- a/ftplugin/postscr.vim +++ b/ftplugin/postscr.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('postscr', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'postscr') finish endif diff --git a/ftplugin/procmail.vim b/ftplugin/procmail.vim index fed5e4d4..9f7337e9 100644 --- a/ftplugin/procmail.vim +++ b/ftplugin/procmail.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('procmail', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'procmail') finish endif diff --git a/ftplugin/prolog.vim b/ftplugin/prolog.vim index 0ed3fccf..46306162 100644 --- a/ftplugin/prolog.vim +++ b/ftplugin/prolog.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('prolog', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'prolog') finish endif diff --git a/ftplugin/protocols.vim b/ftplugin/protocols.vim index da0a6699..608a1767 100644 --- a/ftplugin/protocols.vim +++ b/ftplugin/protocols.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('protocols', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'protocols') finish endif diff --git a/ftplugin/ps1.vim b/ftplugin/ps1.vim index 25c015cb..93e206e9 100644 --- a/ftplugin/ps1.vim +++ b/ftplugin/ps1.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('powershell', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'powershell') finish endif diff --git a/ftplugin/ps1xml.vim b/ftplugin/ps1xml.vim index e8afcf6a..4014865b 100644 --- a/ftplugin/ps1xml.vim +++ b/ftplugin/ps1xml.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('powershell', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'powershell') finish endif diff --git a/ftplugin/pug.vim b/ftplugin/pug.vim index 4be43d55..b29b12ad 100644 --- a/ftplugin/pug.vim +++ b/ftplugin/pug.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('pug', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'pug') finish endif diff --git a/ftplugin/puppet.vim b/ftplugin/puppet.vim index 6c8ec633..c4fe70fa 100644 --- a/ftplugin/puppet.vim +++ b/ftplugin/puppet.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('puppet', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'puppet') finish endif diff --git a/ftplugin/puppet_tagbar.vim b/ftplugin/puppet_tagbar.vim index 6724b3a0..5c567546 100644 --- a/ftplugin/puppet_tagbar.vim +++ b/ftplugin/puppet_tagbar.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('puppet', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'puppet') finish endif diff --git a/ftplugin/purescript.vim b/ftplugin/purescript.vim index 366b2da2..e21e6dde 100644 --- a/ftplugin/purescript.vim +++ b/ftplugin/purescript.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('purescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'purescript') finish endif diff --git a/ftplugin/pyrex.vim b/ftplugin/pyrex.vim index 5c64042c..c3e81272 100644 --- a/ftplugin/pyrex.vim +++ b/ftplugin/pyrex.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('pyrex', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'pyrex') finish endif diff --git a/ftplugin/qml.vim b/ftplugin/qml.vim index ae94d461..e725ba51 100644 --- a/ftplugin/qml.vim +++ b/ftplugin/qml.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('qml', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'qml') finish endif diff --git a/ftplugin/quake.vim b/ftplugin/quake.vim index 03b49c0a..47f61ef1 100644 --- a/ftplugin/quake.vim +++ b/ftplugin/quake.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('quake', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'quake') finish endif diff --git a/ftplugin/racket.vim b/ftplugin/racket.vim index ad4be8c8..413dd627 100644 --- a/ftplugin/racket.vim +++ b/ftplugin/racket.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('racket', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'racket') finish endif diff --git a/ftplugin/raku.vim b/ftplugin/raku.vim index 8f9a55ec..ec2bcccd 100644 --- a/ftplugin/raku.vim +++ b/ftplugin/raku.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('raku', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'raku') finish endif diff --git a/ftplugin/raml.vim b/ftplugin/raml.vim index fecbba66..4eb1e58f 100644 --- a/ftplugin/raml.vim +++ b/ftplugin/raml.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('raml', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'raml') finish endif diff --git a/ftplugin/razor.vim b/ftplugin/razor.vim index 4bd0bc4a..d5458d47 100644 --- a/ftplugin/razor.vim +++ b/ftplugin/razor.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('razor', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'razor') finish endif diff --git a/ftplugin/readline.vim b/ftplugin/readline.vim index b1a0a0bc..9a3030fb 100644 --- a/ftplugin/readline.vim +++ b/ftplugin/readline.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('readline', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'readline') finish endif diff --git a/ftplugin/reva.vim b/ftplugin/reva.vim index b5211a02..3163440c 100644 --- a/ftplugin/reva.vim +++ b/ftplugin/reva.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('reva', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'reva') finish endif diff --git a/ftplugin/rmd.vim b/ftplugin/rmd.vim index f0e6ce6f..fbe78423 100644 --- a/ftplugin/rmd.vim +++ b/ftplugin/rmd.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('rmd', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'rmd') finish endif diff --git a/ftplugin/rnc.vim b/ftplugin/rnc.vim index 86645ab4..efd596e8 100644 --- a/ftplugin/rnc.vim +++ b/ftplugin/rnc.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('rnc', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'rnc') finish endif diff --git a/ftplugin/rnoweb.vim b/ftplugin/rnoweb.vim index 44e4d0fc..b049d7d9 100644 --- a/ftplugin/rnoweb.vim +++ b/ftplugin/rnoweb.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('rnoweb', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'rnoweb') finish endif diff --git a/ftplugin/rpl.vim b/ftplugin/rpl.vim index 3324ea9b..94af1a68 100644 --- a/ftplugin/rpl.vim +++ b/ftplugin/rpl.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('rpl', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'rpl') finish endif diff --git a/ftplugin/rrst.vim b/ftplugin/rrst.vim index dd8b1238..1708b975 100644 --- a/ftplugin/rrst.vim +++ b/ftplugin/rrst.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('rrst', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'rrst') finish endif diff --git a/ftplugin/rst.vim b/ftplugin/rst.vim index 10554403..29c7da66 100644 --- a/ftplugin/rst.vim +++ b/ftplugin/rst.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('rst', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'rst') finish endif diff --git a/ftplugin/ruby.vim b/ftplugin/ruby.vim index cbf047e0..cf1b8f4f 100644 --- a/ftplugin/ruby.vim +++ b/ftplugin/ruby.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ruby', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ruby') finish endif diff --git a/ftplugin/rust.vim b/ftplugin/rust.vim index b5e3b771..02664bd9 100644 --- a/ftplugin/rust.vim +++ b/ftplugin/rust.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('rust', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'rust') finish endif diff --git a/ftplugin/rust/tagbar.vim b/ftplugin/rust/tagbar.vim index f8ccbf75..5de12f9c 100644 --- a/ftplugin/rust/tagbar.vim +++ b/ftplugin/rust/tagbar.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('rust', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'rust') finish endif diff --git a/ftplugin/sass.vim b/ftplugin/sass.vim index ec303c12..7e20a9f3 100644 --- a/ftplugin/sass.vim +++ b/ftplugin/sass.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('sass', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'sass') finish endif diff --git a/ftplugin/sbt.vim b/ftplugin/sbt.vim index 9d6b6429..a6e8ac72 100644 --- a/ftplugin/sbt.vim +++ b/ftplugin/sbt.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('sbt', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'sbt') finish endif diff --git a/ftplugin/scala.vim b/ftplugin/scala.vim index 29bb9238..1edd9b47 100644 --- a/ftplugin/scala.vim +++ b/ftplugin/scala.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('scala', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'scala') finish endif diff --git a/ftplugin/scala.xpt.vim b/ftplugin/scala.xpt.vim index e18ced84..6bb1f8ba 100644 --- a/ftplugin/scala.xpt.vim +++ b/ftplugin/scala.xpt.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('scala', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'scala') finish endif diff --git a/ftplugin/scala/tagbar.vim b/ftplugin/scala/tagbar.vim index c290af07..02eeb7ad 100644 --- a/ftplugin/scala/tagbar.vim +++ b/ftplugin/scala/tagbar.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('scala', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'scala') finish endif diff --git a/ftplugin/scheme.vim b/ftplugin/scheme.vim index edbcfa0c..279bd667 100644 --- a/ftplugin/scheme.vim +++ b/ftplugin/scheme.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('scheme', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'scheme') finish endif diff --git a/ftplugin/screen.vim b/ftplugin/screen.vim index d2da6398..cfe815fc 100644 --- a/ftplugin/screen.vim +++ b/ftplugin/screen.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('screen', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'screen') finish endif diff --git a/ftplugin/scss.vim b/ftplugin/scss.vim index 78cbe958..3f9bf7bc 100644 --- a/ftplugin/scss.vim +++ b/ftplugin/scss.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('scss', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'scss') finish endif diff --git a/ftplugin/sensors.vim b/ftplugin/sensors.vim index 3d9109ea..9ef23447 100644 --- a/ftplugin/sensors.vim +++ b/ftplugin/sensors.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('sensors', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'sensors') finish endif diff --git a/ftplugin/services.vim b/ftplugin/services.vim index 84afa274..c23297cb 100644 --- a/ftplugin/services.vim +++ b/ftplugin/services.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('services', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'services') finish endif diff --git a/ftplugin/setserial.vim b/ftplugin/setserial.vim index 5bbe7182..308863aa 100644 --- a/ftplugin/setserial.vim +++ b/ftplugin/setserial.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('setserial', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'setserial') finish endif diff --git a/ftplugin/sexplib.vim b/ftplugin/sexplib.vim index c019c9e4..3546c5f8 100644 --- a/ftplugin/sexplib.vim +++ b/ftplugin/sexplib.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ocaml', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ocaml') finish endif diff --git a/ftplugin/sieve.vim b/ftplugin/sieve.vim index 596fdd80..370a9e81 100644 --- a/ftplugin/sieve.vim +++ b/ftplugin/sieve.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('sieve', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'sieve') finish endif diff --git a/ftplugin/slim.vim b/ftplugin/slim.vim index 46b72c08..7b51ffd8 100644 --- a/ftplugin/slim.vim +++ b/ftplugin/slim.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('slim', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'slim') finish endif diff --git a/ftplugin/slpconf.vim b/ftplugin/slpconf.vim index e036286c..b7ee39a5 100644 --- a/ftplugin/slpconf.vim +++ b/ftplugin/slpconf.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('slpconf', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'slpconf') finish endif diff --git a/ftplugin/slpreg.vim b/ftplugin/slpreg.vim index f3b64456..bb25237b 100644 --- a/ftplugin/slpreg.vim +++ b/ftplugin/slpreg.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('slpreg', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'slpreg') finish endif diff --git a/ftplugin/slpspi.vim b/ftplugin/slpspi.vim index 5e6641ba..1653681f 100644 --- a/ftplugin/slpspi.vim +++ b/ftplugin/slpspi.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('slpspi', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'slpspi') finish endif diff --git a/ftplugin/smt2.vim b/ftplugin/smt2.vim index 03b5ba2b..243ee2a9 100644 --- a/ftplugin/smt2.vim +++ b/ftplugin/smt2.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('smt2', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'smt2') finish endif diff --git a/ftplugin/solidity.vim b/ftplugin/solidity.vim index 1d52826e..a9b4e671 100644 --- a/ftplugin/solidity.vim +++ b/ftplugin/solidity.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('solidity', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'solidity') finish endif diff --git a/ftplugin/spec.vim b/ftplugin/spec.vim index a7b9f9cd..8d7a14b5 100644 --- a/ftplugin/spec.vim +++ b/ftplugin/spec.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('spec', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'spec') finish endif diff --git a/ftplugin/sql.vim b/ftplugin/sql.vim index 3338aed8..a187c6ee 100644 --- a/ftplugin/sql.vim +++ b/ftplugin/sql.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('sql', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'sql') finish endif diff --git a/ftplugin/sshconfig.vim b/ftplugin/sshconfig.vim index b68be8b1..8fc36964 100644 --- a/ftplugin/sshconfig.vim +++ b/ftplugin/sshconfig.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('sshconfig', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'sshconfig') finish endif diff --git a/ftplugin/stylus.vim b/ftplugin/stylus.vim index 538a491a..89a6272e 100644 --- a/ftplugin/stylus.vim +++ b/ftplugin/stylus.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('stylus', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'stylus') finish endif diff --git a/ftplugin/sudoers.vim b/ftplugin/sudoers.vim index e085e5a6..3ae23eb1 100644 --- a/ftplugin/sudoers.vim +++ b/ftplugin/sudoers.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('sudoers', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'sudoers') finish endif diff --git a/ftplugin/svelte.vim b/ftplugin/svelte.vim index 132e6bbe..28af186a 100644 --- a/ftplugin/svelte.vim +++ b/ftplugin/svelte.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('svelte', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'svelte') finish endif diff --git a/ftplugin/swift.vim b/ftplugin/swift.vim index 830acfb7..bae53a34 100644 --- a/ftplugin/swift.vim +++ b/ftplugin/swift.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('swift', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'swift') finish endif diff --git a/ftplugin/swiftgyb.vim b/ftplugin/swiftgyb.vim index 6468b9cd..75aee251 100644 --- a/ftplugin/swiftgyb.vim +++ b/ftplugin/swiftgyb.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('swiftgyb', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'swiftgyb') finish endif diff --git a/ftplugin/sysctl.vim b/ftplugin/sysctl.vim index efb8ce6b..d57cd390 100644 --- a/ftplugin/sysctl.vim +++ b/ftplugin/sysctl.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('sysctl', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'sysctl') finish endif diff --git a/ftplugin/systemd.vim b/ftplugin/systemd.vim index 26adf612..cf8e76db 100644 --- a/ftplugin/systemd.vim +++ b/ftplugin/systemd.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('systemd', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'systemd') finish endif diff --git a/ftplugin/systemverilog.vim b/ftplugin/systemverilog.vim index 2f0a7244..1a0823c7 100644 --- a/ftplugin/systemverilog.vim +++ b/ftplugin/systemverilog.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('systemverilog', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'systemverilog') finish endif diff --git a/ftplugin/tablegen.vim b/ftplugin/tablegen.vim index 28bd6fdd..1fdf0515 100644 --- a/ftplugin/tablegen.vim +++ b/ftplugin/tablegen.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('llvm', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'llvm') finish endif diff --git a/ftplugin/tcl.vim b/ftplugin/tcl.vim index 7ba25f7f..d359b3f8 100644 --- a/ftplugin/tcl.vim +++ b/ftplugin/tcl.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('tcl', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'tcl') finish endif diff --git a/ftplugin/terminfo.vim b/ftplugin/terminfo.vim index a83ca282..4bc23398 100644 --- a/ftplugin/terminfo.vim +++ b/ftplugin/terminfo.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('terminfo', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'terminfo') finish endif diff --git a/ftplugin/terraform.vim b/ftplugin/terraform.vim index 63e74df7..191fd3f1 100644 --- a/ftplugin/terraform.vim +++ b/ftplugin/terraform.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('terraform', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'terraform') finish endif diff --git a/ftplugin/tex.vim b/ftplugin/tex.vim index 53b95e3f..17b3e2a7 100644 --- a/ftplugin/tex.vim +++ b/ftplugin/tex.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('tex', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'tex') finish endif diff --git a/ftplugin/text.vim b/ftplugin/text.vim index 99d387f5..1f14648d 100644 --- a/ftplugin/text.vim +++ b/ftplugin/text.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('text', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'text') finish endif diff --git a/ftplugin/textile.vim b/ftplugin/textile.vim index 96828942..e636bd55 100644 --- a/ftplugin/textile.vim +++ b/ftplugin/textile.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('textile', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'textile') finish endif diff --git a/ftplugin/tmux.vim b/ftplugin/tmux.vim index c598635f..34ad2f15 100644 --- a/ftplugin/tmux.vim +++ b/ftplugin/tmux.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('tmux', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'tmux') finish endif diff --git a/ftplugin/toml.vim b/ftplugin/toml.vim index fb12e87c..b510817f 100644 --- a/ftplugin/toml.vim +++ b/ftplugin/toml.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('toml', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'toml') finish endif diff --git a/ftplugin/treetop.vim b/ftplugin/treetop.vim index 65a43fb7..44f4e530 100644 --- a/ftplugin/treetop.vim +++ b/ftplugin/treetop.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('treetop', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'treetop') finish endif diff --git a/ftplugin/tt2html.vim b/ftplugin/tt2html.vim index c1c47c56..e6496e61 100644 --- a/ftplugin/tt2html.vim +++ b/ftplugin/tt2html.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('perl', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'perl') finish endif diff --git a/ftplugin/twig.vim b/ftplugin/twig.vim index ac52d1b9..7635a4fb 100644 --- a/ftplugin/twig.vim +++ b/ftplugin/twig.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('twig', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'twig') finish endif diff --git a/ftplugin/typescript.vim b/ftplugin/typescript.vim index 4eece320..ff2b5baa 100644 --- a/ftplugin/typescript.vim +++ b/ftplugin/typescript.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/ftplugin/typescriptreact.vim b/ftplugin/typescriptreact.vim index 7f60b3f9..e5780918 100644 --- a/ftplugin/typescriptreact.vim +++ b/ftplugin/typescriptreact.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/ftplugin/udevconf.vim b/ftplugin/udevconf.vim index d82aea9e..72eef04a 100644 --- a/ftplugin/udevconf.vim +++ b/ftplugin/udevconf.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('udevconf', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'udevconf') finish endif diff --git a/ftplugin/udevperm.vim b/ftplugin/udevperm.vim index bdafc586..56f956fb 100644 --- a/ftplugin/udevperm.vim +++ b/ftplugin/udevperm.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('udevperm', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'udevperm') finish endif diff --git a/ftplugin/updatedb.vim b/ftplugin/updatedb.vim index 48f24051..5dbc78a7 100644 --- a/ftplugin/updatedb.vim +++ b/ftplugin/updatedb.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('updatedb', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'updatedb') finish endif diff --git a/ftplugin/vala.vim b/ftplugin/vala.vim index 32d41d1b..a76bb1ae 100644 --- a/ftplugin/vala.vim +++ b/ftplugin/vala.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('vala', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'vala') finish endif diff --git a/ftplugin/vb.vim b/ftplugin/vb.vim index 23cbd0ac..4f5ae89c 100644 --- a/ftplugin/vb.vim +++ b/ftplugin/vb.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('visual-basic', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'visual-basic') finish endif diff --git a/ftplugin/verilog.vim b/ftplugin/verilog.vim index 5b123335..fe059573 100644 --- a/ftplugin/verilog.vim +++ b/ftplugin/verilog.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('verilog', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'verilog') finish endif diff --git a/ftplugin/vhdl.vim b/ftplugin/vhdl.vim index 0e98087c..8861b614 100644 --- a/ftplugin/vhdl.vim +++ b/ftplugin/vhdl.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('vhdl', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'vhdl') finish endif diff --git a/ftplugin/vlang.vim b/ftplugin/vlang.vim index a3d3ceac..de4d7e03 100644 --- a/ftplugin/vlang.vim +++ b/ftplugin/vlang.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('v', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'v') finish endif diff --git a/ftplugin/vroom.vim b/ftplugin/vroom.vim index b73c76f3..982b2631 100644 --- a/ftplugin/vroom.vim +++ b/ftplugin/vroom.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('vroom', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'vroom') finish endif diff --git a/ftplugin/vue.vim b/ftplugin/vue.vim index 6cc068c6..44f1e258 100644 --- a/ftplugin/vue.vim +++ b/ftplugin/vue.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('vue', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'vue') finish endif diff --git a/ftplugin/wast.vim b/ftplugin/wast.vim index 8e8b16b2..6e4aad47 100644 --- a/ftplugin/wast.vim +++ b/ftplugin/wast.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('wast', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'wast') finish endif diff --git a/ftplugin/xdefaults.vim b/ftplugin/xdefaults.vim index 9c7c7731..fadb2702 100644 --- a/ftplugin/xdefaults.vim +++ b/ftplugin/xdefaults.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('xdefaults', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'xdefaults') finish endif diff --git a/ftplugin/xf86conf.vim b/ftplugin/xf86conf.vim index 62e7e0e6..3b0fd9fb 100644 --- a/ftplugin/xf86conf.vim +++ b/ftplugin/xf86conf.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('xf86conf', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'xf86conf') finish endif diff --git a/ftplugin/xhtml.vim b/ftplugin/xhtml.vim index a2f6a724..db379aa6 100644 --- a/ftplugin/xhtml.vim +++ b/ftplugin/xhtml.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('xhtml', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'xhtml') finish endif diff --git a/ftplugin/xinetd.vim b/ftplugin/xinetd.vim index c489135c..618cf2d1 100644 --- a/ftplugin/xinetd.vim +++ b/ftplugin/xinetd.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('xinetd', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'xinetd') finish endif diff --git a/ftplugin/xmodmap.vim b/ftplugin/xmodmap.vim index c80fbd34..32a1aa27 100644 --- a/ftplugin/xmodmap.vim +++ b/ftplugin/xmodmap.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('xmodmap', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'xmodmap') finish endif diff --git a/ftplugin/xs.vim b/ftplugin/xs.vim index a3f996a8..b3ddbf61 100644 --- a/ftplugin/xs.vim +++ b/ftplugin/xs.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('perl', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'perl') finish endif diff --git a/ftplugin/xsd.vim b/ftplugin/xsd.vim index d4849682..236fc52f 100644 --- a/ftplugin/xsd.vim +++ b/ftplugin/xsd.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('xsd', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'xsd') finish endif diff --git a/ftplugin/xslt.vim b/ftplugin/xslt.vim index 034cefbb..35ca3a1d 100644 --- a/ftplugin/xslt.vim +++ b/ftplugin/xslt.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('xslt', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'xslt') finish endif diff --git a/ftplugin/yaml.vim b/ftplugin/yaml.vim index 5ffdb31a..22d31afb 100644 --- a/ftplugin/yaml.vim +++ b/ftplugin/yaml.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('yaml', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'yaml') finish endif diff --git a/ftplugin/zig.vim b/ftplugin/zig.vim index 7762b877..da9fafc6 100644 --- a/ftplugin/zig.vim +++ b/ftplugin/zig.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('zig', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'zig') finish endif diff --git a/ftplugin/zimbu.vim b/ftplugin/zimbu.vim index 71575497..3531f9cc 100644 --- a/ftplugin/zimbu.vim +++ b/ftplugin/zimbu.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('zimbu', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'zimbu') finish endif diff --git a/indent/Jenkinsfile.vim b/indent/Jenkinsfile.vim index 74390b23..0590e34b 100644 --- a/indent/Jenkinsfile.vim +++ b/indent/Jenkinsfile.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('jenkins', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'jenkins') finish endif diff --git a/indent/aap.vim b/indent/aap.vim index fde2ebc4..1694a400 100644 --- a/indent/aap.vim +++ b/indent/aap.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('aap', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'aap') finish endif diff --git a/indent/ada.vim b/indent/ada.vim index 6c924fbc..a07c3f02 100644 --- a/indent/ada.vim +++ b/indent/ada.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ada', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ada') finish endif diff --git a/indent/ansible.vim b/indent/ansible.vim index f6a9cbef..18d47017 100644 --- a/indent/ansible.vim +++ b/indent/ansible.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ansible', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ansible') finish endif diff --git a/indent/ant.vim b/indent/ant.vim index e6a46688..4ec29f39 100644 --- a/indent/ant.vim +++ b/indent/ant.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ant', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ant') finish endif diff --git a/indent/applescript.vim b/indent/applescript.vim index 88fc6835..6639b6c5 100644 --- a/indent/applescript.vim +++ b/indent/applescript.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('applescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'applescript') finish endif diff --git a/indent/arduino.vim b/indent/arduino.vim index ede5e1e6..37d887cf 100644 --- a/indent/arduino.vim +++ b/indent/arduino.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('arduino', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'arduino') finish endif diff --git a/indent/autohotkey.vim b/indent/autohotkey.vim index 99d8b6d5..f8d52075 100644 --- a/indent/autohotkey.vim +++ b/indent/autohotkey.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('autohotkey', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'autohotkey') finish endif diff --git a/indent/automake.vim b/indent/automake.vim index 4fd489fa..1b5d9567 100644 --- a/indent/automake.vim +++ b/indent/automake.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('automake', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'automake') finish endif diff --git a/indent/awk.vim b/indent/awk.vim index ba18e12e..37e5dfdc 100644 --- a/indent/awk.vim +++ b/indent/awk.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('awk', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'awk') finish endif diff --git a/indent/bib.vim b/indent/bib.vim index 37622c70..73433714 100644 --- a/indent/bib.vim +++ b/indent/bib.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('bib', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'bib') finish endif diff --git a/indent/blade.vim b/indent/blade.vim index a16266c1..45292d19 100644 --- a/indent/blade.vim +++ b/indent/blade.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('blade', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'blade') finish endif diff --git a/indent/bst.vim b/indent/bst.vim index 29ae2961..96863e20 100644 --- a/indent/bst.vim +++ b/indent/bst.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('bst', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'bst') finish endif diff --git a/indent/bzl.vim b/indent/bzl.vim index 2ee9d707..2c5faccf 100644 --- a/indent/bzl.vim +++ b/indent/bzl.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('bzl', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'bzl') finish endif diff --git a/indent/cabal.vim b/indent/cabal.vim index e65eee71..62a68b74 100644 --- a/indent/cabal.vim +++ b/indent/cabal.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('haskell', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'haskell') finish endif diff --git a/indent/caddyfile.vim b/indent/caddyfile.vim index 1db00f22..f12a1615 100644 --- a/indent/caddyfile.vim +++ b/indent/caddyfile.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('caddyfile', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'caddyfile') finish endif diff --git a/indent/cdl.vim b/indent/cdl.vim index e52b8082..483cb1d4 100644 --- a/indent/cdl.vim +++ b/indent/cdl.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('cdl', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'cdl') finish endif diff --git a/indent/ch.vim b/indent/ch.vim index bcee5c3c..34997e55 100644 --- a/indent/ch.vim +++ b/indent/ch.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ch', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ch') finish endif diff --git a/indent/chaiscript.vim b/indent/chaiscript.vim index ba2908f9..e0639e88 100644 --- a/indent/chaiscript.vim +++ b/indent/chaiscript.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('chaiscript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'chaiscript') finish endif diff --git a/indent/clojure.vim b/indent/clojure.vim index 72bff69f..7e4de1ab 100644 --- a/indent/clojure.vim +++ b/indent/clojure.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('clojure', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'clojure') finish endif diff --git a/indent/cmake.vim b/indent/cmake.vim index 49e8fd96..a5c1af08 100644 --- a/indent/cmake.vim +++ b/indent/cmake.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('cmake', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'cmake') finish endif diff --git a/indent/cobol.vim b/indent/cobol.vim index c962a0d0..d0c9f703 100644 --- a/indent/cobol.vim +++ b/indent/cobol.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('cobol', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'cobol') finish endif diff --git a/indent/coffee.vim b/indent/coffee.vim index 6fc21afc..dbac1e6d 100644 --- a/indent/coffee.vim +++ b/indent/coffee.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('coffee-script', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'coffee-script') finish endif diff --git a/indent/config.vim b/indent/config.vim index 096f5b40..e4381928 100644 --- a/indent/config.vim +++ b/indent/config.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('config', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'config') finish endif diff --git a/indent/crystal.vim b/indent/crystal.vim index 9b3a8d53..4883caa8 100644 --- a/indent/crystal.vim +++ b/indent/crystal.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('crystal', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'crystal') finish endif diff --git a/indent/cs.vim b/indent/cs.vim index 60e2a61d..7ed30637 100644 --- a/indent/cs.vim +++ b/indent/cs.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('cs', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'cs') finish endif diff --git a/indent/css.vim b/indent/css.vim index a831c77b..3346bde6 100644 --- a/indent/css.vim +++ b/indent/css.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('css', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'css') finish endif diff --git a/indent/cucumber.vim b/indent/cucumber.vim index 72826cca..7b0493fa 100644 --- a/indent/cucumber.vim +++ b/indent/cucumber.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('cucumber', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'cucumber') finish endif diff --git a/indent/cuda.vim b/indent/cuda.vim index 10c26fd6..0c65b2b2 100644 --- a/indent/cuda.vim +++ b/indent/cuda.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('cuda', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'cuda') finish endif diff --git a/indent/cython.vim b/indent/cython.vim index 5f13b77e..951a0cb1 100644 --- a/indent/cython.vim +++ b/indent/cython.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('python-indent', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'python-indent') finish endif diff --git a/indent/d.vim b/indent/d.vim index c121801b..2383b6ac 100644 --- a/indent/d.vim +++ b/indent/d.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('dlang', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'dlang') finish endif diff --git a/indent/dart.vim b/indent/dart.vim index 45bedcf8..09e6e789 100644 --- a/indent/dart.vim +++ b/indent/dart.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('dart', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'dart') finish endif diff --git a/indent/dictconf.vim b/indent/dictconf.vim index c721105c..444bba5e 100644 --- a/indent/dictconf.vim +++ b/indent/dictconf.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('dictconf', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'dictconf') finish endif diff --git a/indent/dictdconf.vim b/indent/dictdconf.vim index 68460d33..f634e2a3 100644 --- a/indent/dictdconf.vim +++ b/indent/dictdconf.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('dictdconf', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'dictdconf') finish endif diff --git a/indent/dosbatch.vim b/indent/dosbatch.vim index 0f7dec48..931430c9 100644 --- a/indent/dosbatch.vim +++ b/indent/dosbatch.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('dosbatch', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'dosbatch') finish endif diff --git a/indent/dtd.vim b/indent/dtd.vim index 0653c474..a478a2cb 100644 --- a/indent/dtd.vim +++ b/indent/dtd.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('dtd', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'dtd') finish endif diff --git a/indent/dune.vim b/indent/dune.vim index f2c06615..4dc3695a 100644 --- a/indent/dune.vim +++ b/indent/dune.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ocaml', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ocaml') finish endif diff --git a/indent/dylan.vim b/indent/dylan.vim index da2e5bc0..82a22915 100644 --- a/indent/dylan.vim +++ b/indent/dylan.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('dylan', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'dylan') finish endif diff --git a/indent/ecrystal.vim b/indent/ecrystal.vim index 483f9d0c..b4007611 100644 --- a/indent/ecrystal.vim +++ b/indent/ecrystal.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('crystal', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'crystal') finish endif diff --git a/indent/eelixir.vim b/indent/eelixir.vim index 56081e23..1f6caea4 100644 --- a/indent/eelixir.vim +++ b/indent/eelixir.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('elixir', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'elixir') finish endif diff --git a/indent/elixir.vim b/indent/elixir.vim index 4d135c2e..4533ed09 100644 --- a/indent/elixir.vim +++ b/indent/elixir.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('elixir', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'elixir') finish endif diff --git a/indent/elm.vim b/indent/elm.vim index 4a8a540a..63910f71 100644 --- a/indent/elm.vim +++ b/indent/elm.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('elm', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'elm') finish endif diff --git a/indent/ember-script.vim b/indent/ember-script.vim index 0e9bdc93..21da5892 100644 --- a/indent/ember-script.vim +++ b/indent/ember-script.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('emberscript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'emberscript') finish endif diff --git a/indent/emblem.vim b/indent/emblem.vim index 86937ed9..c69c8961 100644 --- a/indent/emblem.vim +++ b/indent/emblem.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('emblem', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'emblem') finish endif diff --git a/indent/erlang.vim b/indent/erlang.vim index 2a35b1af..5630d900 100644 --- a/indent/erlang.vim +++ b/indent/erlang.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('erlang', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'erlang') finish endif diff --git a/indent/eruby.vim b/indent/eruby.vim index 98e5b8a0..9eaa428d 100644 --- a/indent/eruby.vim +++ b/indent/eruby.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ruby', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ruby') finish endif diff --git a/indent/eterm.vim b/indent/eterm.vim index d0a68a7c..38de67e3 100644 --- a/indent/eterm.vim +++ b/indent/eterm.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('eterm', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'eterm') finish endif diff --git a/indent/falcon.vim b/indent/falcon.vim index a92a517b..56598a39 100644 --- a/indent/falcon.vim +++ b/indent/falcon.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('falcon', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'falcon') finish endif diff --git a/indent/fennel.vim b/indent/fennel.vim index 90ccd467..687e15ac 100644 --- a/indent/fennel.vim +++ b/indent/fennel.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('fennel', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'fennel') finish endif diff --git a/indent/fish.vim b/indent/fish.vim index 5b314c7f..3a6f0352 100644 --- a/indent/fish.vim +++ b/indent/fish.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('fish', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'fish') finish endif diff --git a/indent/fortran.vim b/indent/fortran.vim index 7aac6b5b..db7cd52b 100644 --- a/indent/fortran.vim +++ b/indent/fortran.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('fortran', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'fortran') finish endif diff --git a/indent/framescript.vim b/indent/framescript.vim index 6371d8cb..359518a1 100644 --- a/indent/framescript.vim +++ b/indent/framescript.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('framescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'framescript') finish endif diff --git a/indent/fsharp.vim b/indent/fsharp.vim index 0ab8dfff..fc9e45ed 100644 --- a/indent/fsharp.vim +++ b/indent/fsharp.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('fsharp', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'fsharp') finish endif diff --git a/indent/gdscript3.vim b/indent/gdscript3.vim index 93f4c26e..b9ee7ca6 100644 --- a/indent/gdscript3.vim +++ b/indent/gdscript3.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('gdscript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'gdscript') finish endif diff --git a/indent/gitconfig.vim b/indent/gitconfig.vim index 5cdd4ce4..a53044b9 100644 --- a/indent/gitconfig.vim +++ b/indent/gitconfig.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('git', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'git') finish endif diff --git a/indent/gitolite.vim b/indent/gitolite.vim index c6517e79..89292180 100644 --- a/indent/gitolite.vim +++ b/indent/gitolite.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('gitolite', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'gitolite') finish endif diff --git a/indent/glsl.vim b/indent/glsl.vim index db9b0ddb..3784e659 100644 --- a/indent/glsl.vim +++ b/indent/glsl.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('glsl', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'glsl') finish endif diff --git a/indent/go.vim b/indent/go.vim index f3ee7ef7..cdb1de21 100644 --- a/indent/go.vim +++ b/indent/go.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('go', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'go') finish endif diff --git a/indent/gohtmltmpl.vim b/indent/gohtmltmpl.vim index f714d9df..93543339 100644 --- a/indent/gohtmltmpl.vim +++ b/indent/gohtmltmpl.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('go', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'go') finish endif diff --git a/indent/graphql.vim b/indent/graphql.vim index a02b2885..b98f3760 100644 --- a/indent/graphql.vim +++ b/indent/graphql.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('graphql', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'graphql') finish endif diff --git a/indent/haml.vim b/indent/haml.vim index 9f5be96c..8fa3f46d 100644 --- a/indent/haml.vim +++ b/indent/haml.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('haml', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'haml') finish endif diff --git a/indent/hamster.vim b/indent/hamster.vim index 43411745..615e3ee2 100644 --- a/indent/hamster.vim +++ b/indent/hamster.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('hamster', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'hamster') finish endif diff --git a/indent/handlebars.vim b/indent/handlebars.vim index f58aa660..bac5f5a2 100644 --- a/indent/handlebars.vim +++ b/indent/handlebars.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('handlebars', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'handlebars') finish endif diff --git a/indent/haskell.vim b/indent/haskell.vim index 19f4e076..4820b4da 100644 --- a/indent/haskell.vim +++ b/indent/haskell.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('haskell', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'haskell') finish endif diff --git a/indent/hcl.vim b/indent/hcl.vim index a0cd2b07..f9dea786 100644 --- a/indent/hcl.vim +++ b/indent/hcl.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('hcl', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'hcl') finish endif diff --git a/indent/hog.vim b/indent/hog.vim index a7607314..5e32c80a 100644 --- a/indent/hog.vim +++ b/indent/hog.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('hog', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'hog') finish endif diff --git a/indent/html.vim b/indent/html.vim index b6ade453..77cc3e94 100644 --- a/indent/html.vim +++ b/indent/html.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('html', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'html') finish endif diff --git a/indent/htmldjango.vim b/indent/htmldjango.vim index 27ba1b06..33feb7cc 100644 --- a/indent/htmldjango.vim +++ b/indent/htmldjango.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('htmldjango', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'htmldjango') finish endif diff --git a/indent/idris.vim b/indent/idris.vim index ffa22afd..964f20d7 100644 --- a/indent/idris.vim +++ b/indent/idris.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('idris', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'idris') finish endif diff --git a/indent/idris2.vim b/indent/idris2.vim index 81b816f8..40ed0c4e 100644 --- a/indent/idris2.vim +++ b/indent/idris2.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('idris2', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'idris2') finish endif diff --git a/indent/j.vim b/indent/j.vim index 1c51552a..67fd7619 100644 --- a/indent/j.vim +++ b/indent/j.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('j', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'j') finish endif diff --git a/indent/java.vim b/indent/java.vim index c6190122..dcf30081 100644 --- a/indent/java.vim +++ b/indent/java.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('java', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'java') finish endif diff --git a/indent/javascript.vim b/indent/javascript.vim index 40a6bb5d..b2204dfe 100644 --- a/indent/javascript.vim +++ b/indent/javascript.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('javascript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'javascript') finish endif diff --git a/indent/json.vim b/indent/json.vim index a2e0b6d6..f2775b0b 100644 --- a/indent/json.vim +++ b/indent/json.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('json', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'json') finish endif diff --git a/indent/jsp.vim b/indent/jsp.vim index 4ff51051..e1b5b8de 100644 --- a/indent/jsp.vim +++ b/indent/jsp.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('jsp', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'jsp') finish endif diff --git a/indent/jst.vim b/indent/jst.vim index 507e8b56..018b4441 100644 --- a/indent/jst.vim +++ b/indent/jst.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('jst', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'jst') finish endif diff --git a/indent/julia.vim b/indent/julia.vim index 3ea209a1..8b21464f 100644 --- a/indent/julia.vim +++ b/indent/julia.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('julia', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'julia') finish endif diff --git a/indent/kotlin.vim b/indent/kotlin.vim index 996b2fd7..ebedbe30 100644 --- a/indent/kotlin.vim +++ b/indent/kotlin.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('kotlin', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'kotlin') finish endif diff --git a/indent/ld.vim b/indent/ld.vim index 550b7032..43c11a63 100644 --- a/indent/ld.vim +++ b/indent/ld.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ld', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ld') finish endif diff --git a/indent/ledger.vim b/indent/ledger.vim index 11037610..d1ab3682 100644 --- a/indent/ledger.vim +++ b/indent/ledger.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ledger', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ledger') finish endif diff --git a/indent/less.vim b/indent/less.vim index 6ce917af..83fad12d 100644 --- a/indent/less.vim +++ b/indent/less.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('less', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'less') finish endif diff --git a/indent/lifelines.vim b/indent/lifelines.vim index 70f21aa2..b3ab480d 100644 --- a/indent/lifelines.vim +++ b/indent/lifelines.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('lifelines', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'lifelines') finish endif diff --git a/indent/lilypond.vim b/indent/lilypond.vim index cdb418da..aec3f584 100644 --- a/indent/lilypond.vim +++ b/indent/lilypond.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('lilypond', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'lilypond') finish endif diff --git a/indent/liquid.vim b/indent/liquid.vim index f3fb43a9..3ed8f3f8 100644 --- a/indent/liquid.vim +++ b/indent/liquid.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('liquid', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'liquid') finish endif diff --git a/indent/lisp.vim b/indent/lisp.vim index 88a08b72..7b1d2523 100644 --- a/indent/lisp.vim +++ b/indent/lisp.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('lisp', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'lisp') finish endif diff --git a/indent/litcoffee.vim b/indent/litcoffee.vim index 0515201f..c9fb5328 100644 --- a/indent/litcoffee.vim +++ b/indent/litcoffee.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('coffee-script', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'coffee-script') finish endif diff --git a/indent/llvm.vim b/indent/llvm.vim index 53c6f999..4dac2ef1 100644 --- a/indent/llvm.vim +++ b/indent/llvm.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('llvm', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'llvm') finish endif diff --git a/indent/logtalk.vim b/indent/logtalk.vim index 863afeda..54ae3b6e 100644 --- a/indent/logtalk.vim +++ b/indent/logtalk.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('logtalk', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'logtalk') finish endif diff --git a/indent/ls.vim b/indent/ls.vim index 591ccf76..3b616659 100644 --- a/indent/ls.vim +++ b/indent/ls.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('livescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'livescript') finish endif diff --git a/indent/lua.vim b/indent/lua.vim index 537a390c..a1389226 100644 --- a/indent/lua.vim +++ b/indent/lua.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('lua', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'lua') finish endif diff --git a/indent/mail.vim b/indent/mail.vim index 5899c2a4..ab2c15d1 100644 --- a/indent/mail.vim +++ b/indent/mail.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('mail', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'mail') finish endif diff --git a/indent/make.vim b/indent/make.vim index 0fe68ecb..70e6cec6 100644 --- a/indent/make.vim +++ b/indent/make.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('make', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'make') finish endif diff --git a/indent/mako.vim b/indent/mako.vim index 34d7dbf6..fe53c80e 100644 --- a/indent/mako.vim +++ b/indent/mako.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('mako', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'mako') finish endif diff --git a/indent/markdown.vim b/indent/markdown.vim index 10c576d7..2ec68fa5 100644 --- a/indent/markdown.vim +++ b/indent/markdown.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('markdown', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'markdown') finish endif diff --git a/indent/meson.vim b/indent/meson.vim index d2bd1663..88157453 100644 --- a/indent/meson.vim +++ b/indent/meson.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('meson', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'meson') finish endif diff --git a/indent/mf.vim b/indent/mf.vim index 24c13c7b..fe24bf75 100644 --- a/indent/mf.vim +++ b/indent/mf.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('mf', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'mf') finish endif diff --git a/indent/moon.vim b/indent/moon.vim index a71db55c..a3a03dfc 100644 --- a/indent/moon.vim +++ b/indent/moon.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('moonscript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'moonscript') finish endif diff --git a/indent/mp.vim b/indent/mp.vim index 6dca244a..c0880661 100644 --- a/indent/mp.vim +++ b/indent/mp.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('mp', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'mp') finish endif diff --git a/indent/mustache.vim b/indent/mustache.vim index a7a0d3c3..5715ef4a 100644 --- a/indent/mustache.vim +++ b/indent/mustache.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('handlebars', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'handlebars') finish endif diff --git a/indent/nginx.vim b/indent/nginx.vim index cd0af59f..6ddf90f3 100644 --- a/indent/nginx.vim +++ b/indent/nginx.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('nginx', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'nginx') finish endif diff --git a/indent/nim.vim b/indent/nim.vim index 25747ec5..fab42ed1 100644 --- a/indent/nim.vim +++ b/indent/nim.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('nim', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'nim') finish endif diff --git a/indent/nix.vim b/indent/nix.vim index 24b19cdc..6c869de5 100644 --- a/indent/nix.vim +++ b/indent/nix.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('nix', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'nix') finish endif diff --git a/indent/nsis.vim b/indent/nsis.vim index ed4bd161..d2abb517 100644 --- a/indent/nsis.vim +++ b/indent/nsis.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('nsis', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'nsis') finish endif diff --git a/indent/ocaml.vim b/indent/ocaml.vim index 3a0e70cf..8947957e 100644 --- a/indent/ocaml.vim +++ b/indent/ocaml.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ocaml', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ocaml') finish endif diff --git a/indent/occam.vim b/indent/occam.vim index fea8e44d..125cc09e 100644 --- a/indent/occam.vim +++ b/indent/occam.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('occam', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'occam') finish endif diff --git a/indent/octave.vim b/indent/octave.vim index fbbf0314..a5c62751 100644 --- a/indent/octave.vim +++ b/indent/octave.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('octave', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'octave') finish endif diff --git a/indent/odin.vim b/indent/odin.vim index 50f247bd..3a5bd9cc 100644 --- a/indent/odin.vim +++ b/indent/odin.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('odin', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'odin') finish endif diff --git a/indent/omake.vim b/indent/omake.vim index 3f1e550d..ad84209e 100644 --- a/indent/omake.vim +++ b/indent/omake.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ocaml', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ocaml') finish endif diff --git a/indent/opencl.vim b/indent/opencl.vim index 75d7059c..56f08bc4 100644 --- a/indent/opencl.vim +++ b/indent/opencl.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('opencl', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'opencl') finish endif diff --git a/indent/pascal.vim b/indent/pascal.vim index a58cb87b..8bdc2fdd 100644 --- a/indent/pascal.vim +++ b/indent/pascal.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('pascal', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'pascal') finish endif diff --git a/indent/perl.vim b/indent/perl.vim index c0871db6..0f30c886 100644 --- a/indent/perl.vim +++ b/indent/perl.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('perl', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'perl') finish endif diff --git a/indent/pgsql.vim b/indent/pgsql.vim index 4a3e9144..9a481da2 100644 --- a/indent/pgsql.vim +++ b/indent/pgsql.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('pgsql', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'pgsql') finish endif diff --git a/indent/plantuml.vim b/indent/plantuml.vim index 1620a7c6..14044bbf 100644 --- a/indent/plantuml.vim +++ b/indent/plantuml.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('plantuml', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'plantuml') finish endif diff --git a/indent/pony.vim b/indent/pony.vim index 7d1dc3d2..bbf41806 100644 --- a/indent/pony.vim +++ b/indent/pony.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('pony', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'pony') finish endif diff --git a/indent/postscr.vim b/indent/postscr.vim index ba7ce419..253b9202 100644 --- a/indent/postscr.vim +++ b/indent/postscr.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('postscr', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'postscr') finish endif diff --git a/indent/pov.vim b/indent/pov.vim index 13e0f96f..c30cdc22 100644 --- a/indent/pov.vim +++ b/indent/pov.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('pov', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'pov') finish endif diff --git a/indent/prolog.vim b/indent/prolog.vim index 420edee7..ff7760e0 100644 --- a/indent/prolog.vim +++ b/indent/prolog.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('prolog', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'prolog') finish endif diff --git a/indent/proto.vim b/indent/proto.vim index 8fa33fd6..f63aa31c 100644 --- a/indent/proto.vim +++ b/indent/proto.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('protobuf', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'protobuf') finish endif diff --git a/indent/ps1.vim b/indent/ps1.vim index ac6b83fe..9dc742b6 100644 --- a/indent/ps1.vim +++ b/indent/ps1.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('powershell', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'powershell') finish endif diff --git a/indent/pug.vim b/indent/pug.vim index 20703d8c..40bb8e83 100644 --- a/indent/pug.vim +++ b/indent/pug.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('pug', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'pug') finish endif diff --git a/indent/puppet.vim b/indent/puppet.vim index 1f0a8e3c..8ee706af 100644 --- a/indent/puppet.vim +++ b/indent/puppet.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('puppet', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'puppet') finish endif diff --git a/indent/purescript.vim b/indent/purescript.vim index b040855a..f2867dd9 100644 --- a/indent/purescript.vim +++ b/indent/purescript.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('purescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'purescript') finish endif diff --git a/indent/pyrex.vim b/indent/pyrex.vim index 9ffe4c12..77c936fa 100644 --- a/indent/pyrex.vim +++ b/indent/pyrex.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('pyrex', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'pyrex') finish endif diff --git a/indent/python.vim b/indent/python.vim index 5f13b77e..951a0cb1 100644 --- a/indent/python.vim +++ b/indent/python.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('python-indent', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'python-indent') finish endif diff --git a/indent/qml.vim b/indent/qml.vim index 480e9d8f..6859ec34 100644 --- a/indent/qml.vim +++ b/indent/qml.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('qml', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'qml') finish endif diff --git a/indent/racket.vim b/indent/racket.vim index ceeec45c..cb9934ea 100644 --- a/indent/racket.vim +++ b/indent/racket.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('racket', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'racket') finish endif diff --git a/indent/raku.vim b/indent/raku.vim index 1c759b70..f664f622 100644 --- a/indent/raku.vim +++ b/indent/raku.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('raku', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'raku') finish endif diff --git a/indent/razor.vim b/indent/razor.vim index 2708d10e..41efb5bd 100644 --- a/indent/razor.vim +++ b/indent/razor.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('razor', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'razor') finish endif diff --git a/indent/readline.vim b/indent/readline.vim index 3c79245b..d36d1a8f 100644 --- a/indent/readline.vim +++ b/indent/readline.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('readline', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'readline') finish endif diff --git a/indent/reason.vim b/indent/reason.vim index 4a5160bd..ea7d4ebc 100644 --- a/indent/reason.vim +++ b/indent/reason.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('reason', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'reason') finish endif diff --git a/indent/rmd.vim b/indent/rmd.vim index a5c44090..afeddd38 100644 --- a/indent/rmd.vim +++ b/indent/rmd.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('rmd', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'rmd') finish endif diff --git a/indent/rnoweb.vim b/indent/rnoweb.vim index 350e6d9b..fc6c227e 100644 --- a/indent/rnoweb.vim +++ b/indent/rnoweb.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('rnoweb', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'rnoweb') finish endif diff --git a/indent/rpl.vim b/indent/rpl.vim index 3e11fabe..11e39f53 100644 --- a/indent/rpl.vim +++ b/indent/rpl.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('rpl', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'rpl') finish endif diff --git a/indent/rrst.vim b/indent/rrst.vim index 3d31f1eb..9718b860 100644 --- a/indent/rrst.vim +++ b/indent/rrst.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('rrst', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'rrst') finish endif diff --git a/indent/rst.vim b/indent/rst.vim index 8fbb3d17..94cb44dc 100644 --- a/indent/rst.vim +++ b/indent/rst.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('rst', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'rst') finish endif diff --git a/indent/ruby.vim b/indent/ruby.vim index 2fe4a374..614f359f 100644 --- a/indent/ruby.vim +++ b/indent/ruby.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ruby', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ruby') finish endif diff --git a/indent/rust.vim b/indent/rust.vim index 395e7409..733bf7c2 100644 --- a/indent/rust.vim +++ b/indent/rust.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('rust', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'rust') finish endif diff --git a/indent/sas.vim b/indent/sas.vim index eb2afdf1..320afdf7 100644 --- a/indent/sas.vim +++ b/indent/sas.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('sas', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'sas') finish endif diff --git a/indent/sass.vim b/indent/sass.vim index 4f4971a0..602ed1ef 100644 --- a/indent/sass.vim +++ b/indent/sass.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('sass', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'sass') finish endif diff --git a/indent/scala.vim b/indent/scala.vim index adddc554..05a10bef 100644 --- a/indent/scala.vim +++ b/indent/scala.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('scala', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'scala') finish endif diff --git a/indent/scheme.vim b/indent/scheme.vim index 475d9cd5..670324f0 100644 --- a/indent/scheme.vim +++ b/indent/scheme.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('scheme', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'scheme') finish endif diff --git a/indent/scss.vim b/indent/scss.vim index 80a43bd2..95c947d5 100644 --- a/indent/scss.vim +++ b/indent/scss.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('scss', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'scss') finish endif diff --git a/indent/sdl.vim b/indent/sdl.vim index 470b7328..f253c836 100644 --- a/indent/sdl.vim +++ b/indent/sdl.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('sdl', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'sdl') finish endif diff --git a/indent/slim.vim b/indent/slim.vim index 95eda92d..a33b2095 100644 --- a/indent/slim.vim +++ b/indent/slim.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('slim', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'slim') finish endif diff --git a/indent/slime.vim b/indent/slime.vim index 2ba345f1..db8e3555 100644 --- a/indent/slime.vim +++ b/indent/slime.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('slime', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'slime') finish endif diff --git a/indent/sml.vim b/indent/sml.vim index 0bc7a389..d70b6d0c 100644 --- a/indent/sml.vim +++ b/indent/sml.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('sml', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'sml') finish endif diff --git a/indent/solidity.vim b/indent/solidity.vim index a7844596..bbf7c63c 100644 --- a/indent/solidity.vim +++ b/indent/solidity.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('solidity', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'solidity') finish endif diff --git a/indent/sql.vim b/indent/sql.vim index 34c74570..9ce06910 100644 --- a/indent/sql.vim +++ b/indent/sql.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('sql', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'sql') finish endif diff --git a/indent/sshconfig.vim b/indent/sshconfig.vim index 4d2b3d9b..b68e02ba 100644 --- a/indent/sshconfig.vim +++ b/indent/sshconfig.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('sshconfig', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'sshconfig') finish endif diff --git a/indent/stylus.vim b/indent/stylus.vim index 3265e301..070c1065 100644 --- a/indent/stylus.vim +++ b/indent/stylus.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('stylus', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'stylus') finish endif diff --git a/indent/svelte.vim b/indent/svelte.vim index e8940f42..dbd33877 100644 --- a/indent/svelte.vim +++ b/indent/svelte.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('svelte', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'svelte') finish endif diff --git a/indent/svg.vim b/indent/svg.vim index 198efb46..af0cb1db 100644 --- a/indent/svg.vim +++ b/indent/svg.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('svg-indent', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'svg-indent') finish endif diff --git a/indent/swift.vim b/indent/swift.vim index 5c17fc63..5b5d88bd 100644 --- a/indent/swift.vim +++ b/indent/swift.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('swift', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'swift') finish endif diff --git a/indent/systemverilog.vim b/indent/systemverilog.vim index 43267f6d..9a1353ec 100644 --- a/indent/systemverilog.vim +++ b/indent/systemverilog.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('systemverilog', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'systemverilog') finish endif diff --git a/indent/tcl.vim b/indent/tcl.vim index 8ea5dcc5..01be424e 100644 --- a/indent/tcl.vim +++ b/indent/tcl.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('tcl', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'tcl') finish endif diff --git a/indent/teraterm.vim b/indent/teraterm.vim index 66ad449f..95e76144 100644 --- a/indent/teraterm.vim +++ b/indent/teraterm.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('teraterm', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'teraterm') finish endif diff --git a/indent/terraform.vim b/indent/terraform.vim index ab932dab..e0c65b61 100644 --- a/indent/terraform.vim +++ b/indent/terraform.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('terraform', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'terraform') finish endif diff --git a/indent/tex.vim b/indent/tex.vim index 22184939..f304c092 100644 --- a/indent/tex.vim +++ b/indent/tex.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('tex', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'tex') finish endif diff --git a/indent/tf.vim b/indent/tf.vim index 5c12f112..8b202dc2 100644 --- a/indent/tf.vim +++ b/indent/tf.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('tf', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'tf') finish endif diff --git a/indent/tilde.vim b/indent/tilde.vim index 8df3ede7..b14d3c37 100644 --- a/indent/tilde.vim +++ b/indent/tilde.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('tilde', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'tilde') finish endif diff --git a/indent/treetop.vim b/indent/treetop.vim index d54e6159..6d4314ab 100644 --- a/indent/treetop.vim +++ b/indent/treetop.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('treetop', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'treetop') finish endif diff --git a/indent/twig.vim b/indent/twig.vim index 82087c33..3101f00b 100644 --- a/indent/twig.vim +++ b/indent/twig.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('twig', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'twig') finish endif diff --git a/indent/typescript.vim b/indent/typescript.vim index cc742b97..cb36ad1b 100644 --- a/indent/typescript.vim +++ b/indent/typescript.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/indent/typescriptreact.vim b/indent/typescriptreact.vim index 8253a288..6385bf07 100644 --- a/indent/typescriptreact.vim +++ b/indent/typescriptreact.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/indent/vala.vim b/indent/vala.vim index de3f0fd4..c68bf7eb 100644 --- a/indent/vala.vim +++ b/indent/vala.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('vala', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'vala') finish endif diff --git a/indent/vb.vim b/indent/vb.vim index 4eb977c8..deb6ee86 100644 --- a/indent/vb.vim +++ b/indent/vb.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('visual-basic', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'visual-basic') finish endif diff --git a/indent/velocity.vim b/indent/velocity.vim index 01af414b..7bc9b3e5 100644 --- a/indent/velocity.vim +++ b/indent/velocity.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('velocity', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'velocity') finish endif diff --git a/indent/verilog.vim b/indent/verilog.vim index 06d0a2fb..f1492827 100644 --- a/indent/verilog.vim +++ b/indent/verilog.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('verilog', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'verilog') finish endif diff --git a/indent/vhdl.vim b/indent/vhdl.vim index fd2c2f82..6da3aa60 100644 --- a/indent/vhdl.vim +++ b/indent/vhdl.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('vhdl', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'vhdl') finish endif diff --git a/indent/vlang.vim b/indent/vlang.vim index 58680a45..632469b6 100644 --- a/indent/vlang.vim +++ b/indent/vlang.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('v', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'v') finish endif diff --git a/indent/vroom.vim b/indent/vroom.vim index 47a68029..6952b92c 100644 --- a/indent/vroom.vim +++ b/indent/vroom.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('vroom', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'vroom') finish endif diff --git a/indent/vue.vim b/indent/vue.vim index b4f37cc2..53be97da 100644 --- a/indent/vue.vim +++ b/indent/vue.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('vue', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'vue') finish endif diff --git a/indent/wast.vim b/indent/wast.vim index 97bd3c8d..4483cb6c 100644 --- a/indent/wast.vim +++ b/indent/wast.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('wast', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'wast') finish endif diff --git a/indent/xf86conf.vim b/indent/xf86conf.vim index 287888c9..1454c9e5 100644 --- a/indent/xf86conf.vim +++ b/indent/xf86conf.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('xf86conf', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'xf86conf') finish endif diff --git a/indent/xhtml.vim b/indent/xhtml.vim index 4f4382b3..f660238e 100644 --- a/indent/xhtml.vim +++ b/indent/xhtml.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('xhtml', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'xhtml') finish endif diff --git a/indent/xinetd.vim b/indent/xinetd.vim index 0443b36e..4ed0b273 100644 --- a/indent/xinetd.vim +++ b/indent/xinetd.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('xinetd', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'xinetd') finish endif diff --git a/indent/xsd.vim b/indent/xsd.vim index 9d0e095f..20db1814 100644 --- a/indent/xsd.vim +++ b/indent/xsd.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('xsd', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'xsd') finish endif diff --git a/indent/xslt.vim b/indent/xslt.vim index c1793e1b..fd3de319 100644 --- a/indent/xslt.vim +++ b/indent/xslt.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('xslt', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'xslt') finish endif diff --git a/indent/yacc.vim b/indent/yacc.vim index 37752e48..e14907a4 100644 --- a/indent/yacc.vim +++ b/indent/yacc.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('yacc', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'yacc') finish endif diff --git a/indent/yaml.vim b/indent/yaml.vim index 274190da..c3a5d7cd 100644 --- a/indent/yaml.vim +++ b/indent/yaml.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('yaml', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'yaml') finish endif diff --git a/indent/zig.vim b/indent/zig.vim index c8ff33db..73a65858 100644 --- a/indent/zig.vim +++ b/indent/zig.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('zig', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'zig') finish endif diff --git a/indent/zimbu.vim b/indent/zimbu.vim index c6d99cc4..1ad43f89 100644 --- a/indent/zimbu.vim +++ b/indent/zimbu.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('zimbu', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'zimbu') finish endif diff --git a/plugin/polyglot.vim b/plugin/polyglot.vim index ac828475..c0639057 100644 --- a/plugin/polyglot.vim +++ b/plugin/polyglot.vim @@ -17,7 +17,7 @@ endif " and (mostly comments) from https://github.com/sheerun/vimrc " " Only settings that matter for proper editing are left -if polyglot#util#IsEnabled('sensible', 'ftdetect') +if !has_key(g:polyglot_is_disabled, 'sensible') " Allow backspace in insert mode. if &backspace == "" set backspace=indent,eol,start diff --git a/scripts/build b/scripts/build index 7d069d94..f6910e72 100755 --- a/scripts/build +++ b/scripts/build @@ -295,7 +295,7 @@ def copy_file(name, src, dest) open(dest, "w") do |output| if dest.match?(/\.vim$/) output << <<~EOF - if !polyglot#util#IsEnabled('#{name}', expand('<sfile>:p')) + if !has_key(g:polyglot_is_disabled, '#{name}') finish endif @@ -674,7 +674,7 @@ def generate_ftdetect(packages, heuristics) end if package_autocommands.flatten.size > 0 - output << "if polyglot#util#IsEnabled('#{package["name"]}', 'ftdetect')\n" + output << "if !has_key(g:polyglot_is_disabled, '#{package["name"]}')\n" output << indent(package_autocommands.map { |pc| pc.reverse.join("\n") }.join("\n\n"), 2) output << "\nendif\n\n" end diff --git a/syntax/8th.vim b/syntax/8th.vim index 1a32143f..9c6a1e0f 100644 --- a/syntax/8th.vim +++ b/syntax/8th.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('8th', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, '8th') finish endif diff --git a/syntax/Jenkinsfile.vim b/syntax/Jenkinsfile.vim index b9c6b9c2..a8ae78b8 100644 --- a/syntax/Jenkinsfile.vim +++ b/syntax/Jenkinsfile.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('jenkins', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'jenkins') finish endif diff --git a/syntax/a2ps.vim b/syntax/a2ps.vim index b0f2b98a..7fcf9ee2 100644 --- a/syntax/a2ps.vim +++ b/syntax/a2ps.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('a2ps', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'a2ps') finish endif diff --git a/syntax/a65.vim b/syntax/a65.vim index 5faf43f4..fcfa35bb 100644 --- a/syntax/a65.vim +++ b/syntax/a65.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('a65', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'a65') finish endif diff --git a/syntax/aap.vim b/syntax/aap.vim index 4b714ec7..4d1db9b3 100644 --- a/syntax/aap.vim +++ b/syntax/aap.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('aap', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'aap') finish endif diff --git a/syntax/abap.vim b/syntax/abap.vim index 88e763c4..9d2e4775 100644 --- a/syntax/abap.vim +++ b/syntax/abap.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('abap', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'abap') finish endif diff --git a/syntax/abaqus.vim b/syntax/abaqus.vim index 6f4d7e11..57860708 100644 --- a/syntax/abaqus.vim +++ b/syntax/abaqus.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('abaqus', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'abaqus') finish endif diff --git a/syntax/abc.vim b/syntax/abc.vim index 8bbd911a..c1e6fb04 100644 --- a/syntax/abc.vim +++ b/syntax/abc.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('abc', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'abc') finish endif diff --git a/syntax/abel.vim b/syntax/abel.vim index 388a1727..0299f992 100644 --- a/syntax/abel.vim +++ b/syntax/abel.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('abel', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'abel') finish endif diff --git a/syntax/acedb.vim b/syntax/acedb.vim index 7624743d..cd1d6b59 100644 --- a/syntax/acedb.vim +++ b/syntax/acedb.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('acedb', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'acedb') finish endif diff --git a/syntax/ada.vim b/syntax/ada.vim index 1cfae129..f4ff3025 100644 --- a/syntax/ada.vim +++ b/syntax/ada.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ada', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ada') finish endif diff --git a/syntax/ahdl.vim b/syntax/ahdl.vim index fb5786b0..9436bd2a 100644 --- a/syntax/ahdl.vim +++ b/syntax/ahdl.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ahdl', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ahdl') finish endif diff --git a/syntax/aidl.vim b/syntax/aidl.vim index edc857be..3f8188aa 100644 --- a/syntax/aidl.vim +++ b/syntax/aidl.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('aidl', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'aidl') finish endif diff --git a/syntax/alsaconf.vim b/syntax/alsaconf.vim index ea944b58..6e289c96 100644 --- a/syntax/alsaconf.vim +++ b/syntax/alsaconf.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('alsaconf', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'alsaconf') finish endif diff --git a/syntax/aml.vim b/syntax/aml.vim index 8a4221d1..c7c713a8 100644 --- a/syntax/aml.vim +++ b/syntax/aml.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('aml', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'aml') finish endif diff --git a/syntax/ampl.vim b/syntax/ampl.vim index d67e209d..15e7de97 100644 --- a/syntax/ampl.vim +++ b/syntax/ampl.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ampl', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ampl') finish endif diff --git a/syntax/ansible.vim b/syntax/ansible.vim index a66ad006..2777a0da 100644 --- a/syntax/ansible.vim +++ b/syntax/ansible.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ansible', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ansible') finish endif diff --git a/syntax/ansible_hosts.vim b/syntax/ansible_hosts.vim index 910ad315..7879f551 100644 --- a/syntax/ansible_hosts.vim +++ b/syntax/ansible_hosts.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ansible', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ansible') finish endif diff --git a/syntax/ant.vim b/syntax/ant.vim index 31ac7d70..ee389234 100644 --- a/syntax/ant.vim +++ b/syntax/ant.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ant', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ant') finish endif diff --git a/syntax/apache.vim b/syntax/apache.vim index cf2bc349..85145770 100644 --- a/syntax/apache.vim +++ b/syntax/apache.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('apache', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'apache') finish endif diff --git a/syntax/apachestyle.vim b/syntax/apachestyle.vim index cfa084eb..8af07a1a 100644 --- a/syntax/apachestyle.vim +++ b/syntax/apachestyle.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('apachestyle', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'apachestyle') finish endif diff --git a/syntax/apiblueprint.vim b/syntax/apiblueprint.vim index 018d8e2b..12be8c88 100644 --- a/syntax/apiblueprint.vim +++ b/syntax/apiblueprint.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('apiblueprint', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'apiblueprint') finish endif diff --git a/syntax/applescript.vim b/syntax/applescript.vim index 85af24c3..de31e284 100644 --- a/syntax/applescript.vim +++ b/syntax/applescript.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('applescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'applescript') finish endif diff --git a/syntax/aptconf.vim b/syntax/aptconf.vim index 083f2390..bf9142a3 100644 --- a/syntax/aptconf.vim +++ b/syntax/aptconf.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('aptconf', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'aptconf') finish endif diff --git a/syntax/arch.vim b/syntax/arch.vim index 93357958..6b43e94c 100644 --- a/syntax/arch.vim +++ b/syntax/arch.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('arch', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'arch') finish endif diff --git a/syntax/arduino.vim b/syntax/arduino.vim index 6106a8f7..fe233eef 100644 --- a/syntax/arduino.vim +++ b/syntax/arduino.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('arduino', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'arduino') finish endif diff --git a/syntax/art.vim b/syntax/art.vim index 2845054f..b9cd2a88 100644 --- a/syntax/art.vim +++ b/syntax/art.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('art', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'art') finish endif diff --git a/syntax/asciidoc.vim b/syntax/asciidoc.vim index b6b41b0b..9823a863 100644 --- a/syntax/asciidoc.vim +++ b/syntax/asciidoc.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('asciidoc', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'asciidoc') finish endif diff --git a/syntax/asl.vim b/syntax/asl.vim index 3e2840fe..cdfd0f8b 100644 --- a/syntax/asl.vim +++ b/syntax/asl.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('acpiasl', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'acpiasl') finish endif diff --git a/syntax/asn.vim b/syntax/asn.vim index e2bb53e0..4ae583e9 100644 --- a/syntax/asn.vim +++ b/syntax/asn.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('asn', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'asn') finish endif diff --git a/syntax/aspperl.vim b/syntax/aspperl.vim index 3509b1a2..e81b54da 100644 --- a/syntax/aspperl.vim +++ b/syntax/aspperl.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('aspperl', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'aspperl') finish endif diff --git a/syntax/aspvbs.vim b/syntax/aspvbs.vim index a6d2f335..84e20ae1 100644 --- a/syntax/aspvbs.vim +++ b/syntax/aspvbs.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('aspvbs', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'aspvbs') finish endif diff --git a/syntax/asterisk.vim b/syntax/asterisk.vim index e412aa9f..ad982bd4 100644 --- a/syntax/asterisk.vim +++ b/syntax/asterisk.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('asterisk', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'asterisk') finish endif diff --git a/syntax/asteriskvm.vim b/syntax/asteriskvm.vim index 6e18807b..442bb593 100644 --- a/syntax/asteriskvm.vim +++ b/syntax/asteriskvm.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('asteriskvm', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'asteriskvm') finish endif diff --git a/syntax/atlas.vim b/syntax/atlas.vim index 30336eae..a94be160 100644 --- a/syntax/atlas.vim +++ b/syntax/atlas.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('atlas', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'atlas') finish endif diff --git a/syntax/autodoc.vim b/syntax/autodoc.vim index f386e3aa..4da968da 100644 --- a/syntax/autodoc.vim +++ b/syntax/autodoc.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('autodoc', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'autodoc') finish endif diff --git a/syntax/autoit.vim b/syntax/autoit.vim index 80f921ad..c9c687a2 100644 --- a/syntax/autoit.vim +++ b/syntax/autoit.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('autoit', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'autoit') finish endif diff --git a/syntax/automake.vim b/syntax/automake.vim index 62f7fa45..1e61b27f 100644 --- a/syntax/automake.vim +++ b/syntax/automake.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('automake', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'automake') finish endif diff --git a/syntax/ave.vim b/syntax/ave.vim index 30084a91..a0e5bb74 100644 --- a/syntax/ave.vim +++ b/syntax/ave.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ave', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ave') finish endif diff --git a/syntax/awk.vim b/syntax/awk.vim index d8a8c8c3..19d8000f 100644 --- a/syntax/awk.vim +++ b/syntax/awk.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('awk', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'awk') finish endif diff --git a/syntax/b.vim b/syntax/b.vim index b0ddde41..2dde00cd 100644 --- a/syntax/b.vim +++ b/syntax/b.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('b', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'b') finish endif diff --git a/syntax/basic.vim b/syntax/basic.vim index 056bbc17..565bf678 100644 --- a/syntax/basic.vim +++ b/syntax/basic.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('basic', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'basic') finish endif diff --git a/syntax/basic/class.vim b/syntax/basic/class.vim index 734df1ba..b4e1d752 100644 --- a/syntax/basic/class.vim +++ b/syntax/basic/class.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/syntax/basic/cluster.vim b/syntax/basic/cluster.vim index c601ca43..6561c9d6 100644 --- a/syntax/basic/cluster.vim +++ b/syntax/basic/cluster.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/syntax/basic/decorator.vim b/syntax/basic/decorator.vim index 3eeb22a8..cb131285 100644 --- a/syntax/basic/decorator.vim +++ b/syntax/basic/decorator.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/syntax/basic/doc.vim b/syntax/basic/doc.vim index 54d827a6..4d5f8a27 100644 --- a/syntax/basic/doc.vim +++ b/syntax/basic/doc.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/syntax/basic/function.vim b/syntax/basic/function.vim index 9cda9e8d..14a2deeb 100644 --- a/syntax/basic/function.vim +++ b/syntax/basic/function.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/syntax/basic/identifiers.vim b/syntax/basic/identifiers.vim index 1f4d0a0b..4fe4b565 100644 --- a/syntax/basic/identifiers.vim +++ b/syntax/basic/identifiers.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/syntax/basic/keyword.vim b/syntax/basic/keyword.vim index ec10ebdc..41c4f9d2 100644 --- a/syntax/basic/keyword.vim +++ b/syntax/basic/keyword.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/syntax/basic/literal.vim b/syntax/basic/literal.vim index c8e1ba2c..30411cb6 100644 --- a/syntax/basic/literal.vim +++ b/syntax/basic/literal.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/syntax/basic/members.vim b/syntax/basic/members.vim index 27bf8496..e1c4589a 100644 --- a/syntax/basic/members.vim +++ b/syntax/basic/members.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/syntax/basic/object.vim b/syntax/basic/object.vim index 86585e49..ccc20304 100644 --- a/syntax/basic/object.vim +++ b/syntax/basic/object.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/syntax/basic/patch.vim b/syntax/basic/patch.vim index 669cd8e0..475c050d 100644 --- a/syntax/basic/patch.vim +++ b/syntax/basic/patch.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/syntax/basic/reserved.vim b/syntax/basic/reserved.vim index 0b2d88c9..a60af590 100644 --- a/syntax/basic/reserved.vim +++ b/syntax/basic/reserved.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/syntax/basic/symbols.vim b/syntax/basic/symbols.vim index 58646064..5c83116a 100644 --- a/syntax/basic/symbols.vim +++ b/syntax/basic/symbols.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/syntax/basic/type.vim b/syntax/basic/type.vim index 03fe8de8..c448f2c8 100644 --- a/syntax/basic/type.vim +++ b/syntax/basic/type.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/syntax/bc.vim b/syntax/bc.vim index fb135745..68b24478 100644 --- a/syntax/bc.vim +++ b/syntax/bc.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('bc', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'bc') finish endif diff --git a/syntax/bdf.vim b/syntax/bdf.vim index 86d931d3..7deb6f15 100644 --- a/syntax/bdf.vim +++ b/syntax/bdf.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('bdf', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'bdf') finish endif diff --git a/syntax/bib.vim b/syntax/bib.vim index 844237a8..ccc994c6 100644 --- a/syntax/bib.vim +++ b/syntax/bib.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('bib', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'bib') finish endif diff --git a/syntax/bindzone.vim b/syntax/bindzone.vim index fd03e71a..dd157ce2 100644 --- a/syntax/bindzone.vim +++ b/syntax/bindzone.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('bindzone', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'bindzone') finish endif diff --git a/syntax/blade.vim b/syntax/blade.vim index 49abd937..76258fd8 100644 --- a/syntax/blade.vim +++ b/syntax/blade.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('blade', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'blade') finish endif diff --git a/syntax/blank.vim b/syntax/blank.vim index 81170873..f32e3f3c 100644 --- a/syntax/blank.vim +++ b/syntax/blank.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('blank', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'blank') finish endif diff --git a/syntax/brewfile.vim b/syntax/brewfile.vim index 0d1aea79..ea5e0f9e 100644 --- a/syntax/brewfile.vim +++ b/syntax/brewfile.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('brewfile', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'brewfile') finish endif diff --git a/syntax/bsdl.vim b/syntax/bsdl.vim index e77d53ef..245708ca 100644 --- a/syntax/bsdl.vim +++ b/syntax/bsdl.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('bsdl', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'bsdl') finish endif diff --git a/syntax/bst.vim b/syntax/bst.vim index 1a37e95c..8fb3bd8b 100644 --- a/syntax/bst.vim +++ b/syntax/bst.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('bst', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'bst') finish endif diff --git a/syntax/bzl.vim b/syntax/bzl.vim index 0163a0e2..fe309354 100644 --- a/syntax/bzl.vim +++ b/syntax/bzl.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('bzl', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'bzl') finish endif diff --git a/syntax/bzr.vim b/syntax/bzr.vim index 07bc7fa1..ae7ac357 100644 --- a/syntax/bzr.vim +++ b/syntax/bzr.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('bzr', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'bzr') finish endif diff --git a/syntax/c.vim b/syntax/c.vim index cbcb7086..bedac077 100644 --- a/syntax/c.vim +++ b/syntax/c.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('c/c++', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'c/c++') finish endif diff --git a/syntax/cabal-1.vim b/syntax/cabal-1.vim index d2192fd4..0389eee7 100644 --- a/syntax/cabal-1.vim +++ b/syntax/cabal-1.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('haskell', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'haskell') finish endif diff --git a/syntax/cabal-2.vim b/syntax/cabal-2.vim index 9e9d441c..1467ee31 100644 --- a/syntax/cabal-2.vim +++ b/syntax/cabal-2.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('cabal', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'cabal') finish endif diff --git a/syntax/caddyfile.vim b/syntax/caddyfile.vim index 93503a87..ce62be88 100644 --- a/syntax/caddyfile.vim +++ b/syntax/caddyfile.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('caddyfile', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'caddyfile') finish endif diff --git a/syntax/calendar.vim b/syntax/calendar.vim index 4b154111..dd998494 100644 --- a/syntax/calendar.vim +++ b/syntax/calendar.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('calendar', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'calendar') finish endif diff --git a/syntax/carp.vim b/syntax/carp.vim index 9fdeef0a..1d62f7ca 100644 --- a/syntax/carp.vim +++ b/syntax/carp.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('carp', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'carp') finish endif diff --git a/syntax/catalog.vim b/syntax/catalog.vim index f9054ef1..a6aa01d4 100644 --- a/syntax/catalog.vim +++ b/syntax/catalog.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('catalog', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'catalog') finish endif diff --git a/syntax/cdl.vim b/syntax/cdl.vim index da8ef432..4084adac 100644 --- a/syntax/cdl.vim +++ b/syntax/cdl.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('cdl', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'cdl') finish endif diff --git a/syntax/cdrdaoconf.vim b/syntax/cdrdaoconf.vim index 0a36a716..98fd0111 100644 --- a/syntax/cdrdaoconf.vim +++ b/syntax/cdrdaoconf.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('cdrdaoconf', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'cdrdaoconf') finish endif diff --git a/syntax/cdrtoc.vim b/syntax/cdrtoc.vim index 52fc45fb..f2d5b8cb 100644 --- a/syntax/cdrtoc.vim +++ b/syntax/cdrtoc.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('cdrtoc', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'cdrtoc') finish endif diff --git a/syntax/cf.vim b/syntax/cf.vim index 4f093a9d..45475d0e 100644 --- a/syntax/cf.vim +++ b/syntax/cf.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('cf', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'cf') finish endif diff --git a/syntax/cfg.vim b/syntax/cfg.vim index ce289bf3..484b750c 100644 --- a/syntax/cfg.vim +++ b/syntax/cfg.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('cfg', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'cfg') finish endif diff --git a/syntax/ch.vim b/syntax/ch.vim index 389531e4..4ac949cf 100644 --- a/syntax/ch.vim +++ b/syntax/ch.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ch', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ch') finish endif diff --git a/syntax/chaiscript.vim b/syntax/chaiscript.vim index 7b4df282..dfb53613 100644 --- a/syntax/chaiscript.vim +++ b/syntax/chaiscript.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('chaiscript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'chaiscript') finish endif diff --git a/syntax/chaskell.vim b/syntax/chaskell.vim index 25691208..d819aa97 100644 --- a/syntax/chaskell.vim +++ b/syntax/chaskell.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('chaskell', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'chaskell') finish endif diff --git a/syntax/chill.vim b/syntax/chill.vim index 313dc67a..862ce04c 100644 --- a/syntax/chill.vim +++ b/syntax/chill.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('chill', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'chill') finish endif diff --git a/syntax/chordpro.vim b/syntax/chordpro.vim index b3f5b5bd..10b77048 100644 --- a/syntax/chordpro.vim +++ b/syntax/chordpro.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('chordpro', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'chordpro') finish endif diff --git a/syntax/cl.vim b/syntax/cl.vim index fa5c807c..3e9bf6d2 100644 --- a/syntax/cl.vim +++ b/syntax/cl.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('cl', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'cl') finish endif diff --git a/syntax/clean.vim b/syntax/clean.vim index a5ffc6fc..1cfbca8d 100644 --- a/syntax/clean.vim +++ b/syntax/clean.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('clean', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'clean') finish endif diff --git a/syntax/clojure.vim b/syntax/clojure.vim index eb118543..56c576d8 100644 --- a/syntax/clojure.vim +++ b/syntax/clojure.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('clojure', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'clojure') finish endif diff --git a/syntax/cmake.vim b/syntax/cmake.vim index 12c22895..b6a9a7f5 100644 --- a/syntax/cmake.vim +++ b/syntax/cmake.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('cmake', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'cmake') finish endif diff --git a/syntax/cmod.vim b/syntax/cmod.vim index a0eeb3e6..e23f1609 100644 --- a/syntax/cmod.vim +++ b/syntax/cmod.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('cmod', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'cmod') finish endif diff --git a/syntax/cmusrc.vim b/syntax/cmusrc.vim index 7dc2b94d..e9384d2b 100644 --- a/syntax/cmusrc.vim +++ b/syntax/cmusrc.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('cmusrc', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'cmusrc') finish endif diff --git a/syntax/cobol.vim b/syntax/cobol.vim index 8cf9fb43..e1ab7a14 100644 --- a/syntax/cobol.vim +++ b/syntax/cobol.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('cobol', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'cobol') finish endif diff --git a/syntax/coco.vim b/syntax/coco.vim index 1f01932f..6d92790e 100644 --- a/syntax/coco.vim +++ b/syntax/coco.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('coco', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'coco') finish endif diff --git a/syntax/coffee.vim b/syntax/coffee.vim index 837481ca..f6f54f72 100644 --- a/syntax/coffee.vim +++ b/syntax/coffee.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('coffee-script', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'coffee-script') finish endif diff --git a/syntax/common.vim b/syntax/common.vim index 73969625..87823ef5 100644 --- a/syntax/common.vim +++ b/syntax/common.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/syntax/conaryrecipe.vim b/syntax/conaryrecipe.vim index 4af5618c..95a57d59 100644 --- a/syntax/conaryrecipe.vim +++ b/syntax/conaryrecipe.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('conaryrecipe', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'conaryrecipe') finish endif diff --git a/syntax/conf.vim b/syntax/conf.vim index a5e43e32..b6c8f48d 100644 --- a/syntax/conf.vim +++ b/syntax/conf.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('conf', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'conf') finish endif diff --git a/syntax/config.vim b/syntax/config.vim index a034d772..b7f891e2 100644 --- a/syntax/config.vim +++ b/syntax/config.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('config', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'config') finish endif diff --git a/syntax/cpp.vim b/syntax/cpp.vim index 90bed7a5..b5991bfc 100644 --- a/syntax/cpp.vim +++ b/syntax/cpp.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('c/c++', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'c/c++') finish endif diff --git a/syntax/cql.vim b/syntax/cql.vim index e5124032..6f6a7d5d 100644 --- a/syntax/cql.vim +++ b/syntax/cql.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('cql', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'cql') finish endif diff --git a/syntax/crm.vim b/syntax/crm.vim index 1b6b8a66..020ab4d0 100644 --- a/syntax/crm.vim +++ b/syntax/crm.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('crm', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'crm') finish endif diff --git a/syntax/crontab.vim b/syntax/crontab.vim index 7bedcadc..eaf28b25 100644 --- a/syntax/crontab.vim +++ b/syntax/crontab.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('crontab', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'crontab') finish endif diff --git a/syntax/cryptol.vim b/syntax/cryptol.vim index eb55af0a..76c3524f 100644 --- a/syntax/cryptol.vim +++ b/syntax/cryptol.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('cryptol', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'cryptol') finish endif diff --git a/syntax/crystal.vim b/syntax/crystal.vim index 02aea438..866497d6 100644 --- a/syntax/crystal.vim +++ b/syntax/crystal.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('crystal', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'crystal') finish endif diff --git a/syntax/cs.vim b/syntax/cs.vim index e416cf7f..42646884 100644 --- a/syntax/cs.vim +++ b/syntax/cs.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('cs', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'cs') finish endif diff --git a/syntax/csc.vim b/syntax/csc.vim index dfddecc3..90e866d1 100644 --- a/syntax/csc.vim +++ b/syntax/csc.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('csc', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'csc') finish endif diff --git a/syntax/csdl.vim b/syntax/csdl.vim index 5064bc77..35d5df4c 100644 --- a/syntax/csdl.vim +++ b/syntax/csdl.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('csdl', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'csdl') finish endif diff --git a/syntax/csp.vim b/syntax/csp.vim index 341906b6..1ade70a8 100644 --- a/syntax/csp.vim +++ b/syntax/csp.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('csp', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'csp') finish endif diff --git a/syntax/css.vim b/syntax/css.vim index 95ee1e75..57976baa 100644 --- a/syntax/css.vim +++ b/syntax/css.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('css', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'css') finish endif diff --git a/syntax/csv.vim b/syntax/csv.vim index 138ae547..6ae4b802 100644 --- a/syntax/csv.vim +++ b/syntax/csv.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('csv', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'csv') finish endif diff --git a/syntax/cterm.vim b/syntax/cterm.vim index 9f30bf5b..4c63fa6e 100644 --- a/syntax/cterm.vim +++ b/syntax/cterm.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('cterm', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'cterm') finish endif diff --git a/syntax/cucumber.vim b/syntax/cucumber.vim index 26a236a6..5c32b25d 100644 --- a/syntax/cucumber.vim +++ b/syntax/cucumber.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('cucumber', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'cucumber') finish endif diff --git a/syntax/cuda.vim b/syntax/cuda.vim index 3296fec5..d3a6bd40 100644 --- a/syntax/cuda.vim +++ b/syntax/cuda.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('cuda', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'cuda') finish endif diff --git a/syntax/cuesheet.vim b/syntax/cuesheet.vim index 380edb1e..7588e193 100644 --- a/syntax/cuesheet.vim +++ b/syntax/cuesheet.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('cue', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'cue') finish endif diff --git a/syntax/cupl.vim b/syntax/cupl.vim index 43488e56..11ed7e0f 100644 --- a/syntax/cupl.vim +++ b/syntax/cupl.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('cupl', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'cupl') finish endif diff --git a/syntax/cuplsim.vim b/syntax/cuplsim.vim index d4627870..a66c1dc8 100644 --- a/syntax/cuplsim.vim +++ b/syntax/cuplsim.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('cuplsim', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'cuplsim') finish endif diff --git a/syntax/cvs.vim b/syntax/cvs.vim index 9a0b6e11..1b1b2429 100644 --- a/syntax/cvs.vim +++ b/syntax/cvs.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('cvs', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'cvs') finish endif diff --git a/syntax/cvsrc.vim b/syntax/cvsrc.vim index 13b2f417..40944a23 100644 --- a/syntax/cvsrc.vim +++ b/syntax/cvsrc.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('cvsrc', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'cvsrc') finish endif diff --git a/syntax/cynpp.vim b/syntax/cynpp.vim index 395621b6..12e96d60 100644 --- a/syntax/cynpp.vim +++ b/syntax/cynpp.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('cynpp', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'cynpp') finish endif diff --git a/syntax/d.vim b/syntax/d.vim index 3473a23a..46991380 100644 --- a/syntax/d.vim +++ b/syntax/d.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('dlang', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'dlang') finish endif diff --git a/syntax/dart.vim b/syntax/dart.vim index ef17f0ed..f337fd3d 100644 --- a/syntax/dart.vim +++ b/syntax/dart.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('dart', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'dart') finish endif diff --git a/syntax/datascript.vim b/syntax/datascript.vim index e0138e6c..40668cdd 100644 --- a/syntax/datascript.vim +++ b/syntax/datascript.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('datascript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'datascript') finish endif diff --git a/syntax/dcd.vim b/syntax/dcd.vim index f94b451a..5399fee1 100644 --- a/syntax/dcd.vim +++ b/syntax/dcd.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('dcd', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'dcd') finish endif diff --git a/syntax/dcov.vim b/syntax/dcov.vim index 3d70df06..b7733fdd 100644 --- a/syntax/dcov.vim +++ b/syntax/dcov.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('dlang', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'dlang') finish endif diff --git a/syntax/dd.vim b/syntax/dd.vim index ca81f45b..924cf79a 100644 --- a/syntax/dd.vim +++ b/syntax/dd.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('dlang', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'dlang') finish endif diff --git a/syntax/ddoc.vim b/syntax/ddoc.vim index 80bb2e2c..3e1da367 100644 --- a/syntax/ddoc.vim +++ b/syntax/ddoc.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('dlang', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'dlang') finish endif diff --git a/syntax/debchangelog.vim b/syntax/debchangelog.vim index 36fc627d..dacbe619 100644 --- a/syntax/debchangelog.vim +++ b/syntax/debchangelog.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('debchangelog', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'debchangelog') finish endif diff --git a/syntax/debcontrol.vim b/syntax/debcontrol.vim index 76d6728f..3ad42c3b 100644 --- a/syntax/debcontrol.vim +++ b/syntax/debcontrol.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('debcontrol', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'debcontrol') finish endif diff --git a/syntax/debcopyright.vim b/syntax/debcopyright.vim index 674a3e00..a09ecdc2 100644 --- a/syntax/debcopyright.vim +++ b/syntax/debcopyright.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('debcopyright', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'debcopyright') finish endif diff --git a/syntax/debsources.vim b/syntax/debsources.vim index 69fde228..94ee69b5 100644 --- a/syntax/debsources.vim +++ b/syntax/debsources.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('debsources', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'debsources') finish endif diff --git a/syntax/def.vim b/syntax/def.vim index 5c613817..7cb4175d 100644 --- a/syntax/def.vim +++ b/syntax/def.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('def', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'def') finish endif diff --git a/syntax/denyhosts.vim b/syntax/denyhosts.vim index 9372c53c..b79e6820 100644 --- a/syntax/denyhosts.vim +++ b/syntax/denyhosts.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('denyhosts', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'denyhosts') finish endif diff --git a/syntax/desc.vim b/syntax/desc.vim index ba14a1e3..9ca33453 100644 --- a/syntax/desc.vim +++ b/syntax/desc.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('desc', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'desc') finish endif diff --git a/syntax/desktop.vim b/syntax/desktop.vim index c1d5a9ea..0b562661 100644 --- a/syntax/desktop.vim +++ b/syntax/desktop.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('desktop', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'desktop') finish endif diff --git a/syntax/dhall.vim b/syntax/dhall.vim index e5957507..12b9fa76 100644 --- a/syntax/dhall.vim +++ b/syntax/dhall.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('dhall', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'dhall') finish endif diff --git a/syntax/dictconf.vim b/syntax/dictconf.vim index 44efc352..67db8bd6 100644 --- a/syntax/dictconf.vim +++ b/syntax/dictconf.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('dictconf', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'dictconf') finish endif diff --git a/syntax/dictdconf.vim b/syntax/dictdconf.vim index 5fb5ebf3..cfea1c5d 100644 --- a/syntax/dictdconf.vim +++ b/syntax/dictdconf.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('dictdconf', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'dictdconf') finish endif diff --git a/syntax/diff.vim b/syntax/diff.vim index 43f99fb1..5d614ef8 100644 --- a/syntax/diff.vim +++ b/syntax/diff.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('diff', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'diff') finish endif diff --git a/syntax/dircolors.vim b/syntax/dircolors.vim index ce5d3cd4..2f2c1884 100644 --- a/syntax/dircolors.vim +++ b/syntax/dircolors.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('dircolors', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'dircolors') finish endif diff --git a/syntax/django.vim b/syntax/django.vim index 9912b8c5..e5e0a922 100644 --- a/syntax/django.vim +++ b/syntax/django.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('htmldjango', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'htmldjango') finish endif diff --git a/syntax/dnsmasq.vim b/syntax/dnsmasq.vim index d523fe23..4dcd92e1 100644 --- a/syntax/dnsmasq.vim +++ b/syntax/dnsmasq.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('dnsmasq', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'dnsmasq') finish endif diff --git a/syntax/docker-compose.vim b/syntax/docker-compose.vim index 9290403d..2c063a93 100644 --- a/syntax/docker-compose.vim +++ b/syntax/docker-compose.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('docker-compose', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'docker-compose') finish endif diff --git a/syntax/dockerfile.vim b/syntax/dockerfile.vim index 7c2ff280..5360f0f1 100644 --- a/syntax/dockerfile.vim +++ b/syntax/dockerfile.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('dockerfile', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'dockerfile') finish endif diff --git a/syntax/dosbatch.vim b/syntax/dosbatch.vim index 49d47314..8f8e0221 100644 --- a/syntax/dosbatch.vim +++ b/syntax/dosbatch.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('dosbatch', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'dosbatch') finish endif diff --git a/syntax/dosini.vim b/syntax/dosini.vim index fd8bb3a7..1af9399a 100644 --- a/syntax/dosini.vim +++ b/syntax/dosini.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('dosini', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'dosini') finish endif diff --git a/syntax/dot.vim b/syntax/dot.vim index 57733404..95cfde67 100644 --- a/syntax/dot.vim +++ b/syntax/dot.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('dot', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'dot') finish endif diff --git a/syntax/dracula.vim b/syntax/dracula.vim index df90e153..b1fbc9ac 100644 --- a/syntax/dracula.vim +++ b/syntax/dracula.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('dracula', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'dracula') finish endif diff --git a/syntax/dsdl.vim b/syntax/dsdl.vim index d66e483e..c6a9373a 100644 --- a/syntax/dsdl.vim +++ b/syntax/dsdl.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('dlang', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'dlang') finish endif diff --git a/syntax/dsl.vim b/syntax/dsl.vim index 5b0972dd..0a10dd40 100644 --- a/syntax/dsl.vim +++ b/syntax/dsl.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('dsl', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'dsl') finish endif diff --git a/syntax/dtd.vim b/syntax/dtd.vim index f2510263..b6f93764 100644 --- a/syntax/dtd.vim +++ b/syntax/dtd.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('dtd', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'dtd') finish endif diff --git a/syntax/dts.vim b/syntax/dts.vim index 66cfd370..6a6d3948 100644 --- a/syntax/dts.vim +++ b/syntax/dts.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('dts', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'dts') finish endif diff --git a/syntax/dune.vim b/syntax/dune.vim index 5fb01ff4..dbab1732 100644 --- a/syntax/dune.vim +++ b/syntax/dune.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ocaml', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ocaml') finish endif diff --git a/syntax/dylan.vim b/syntax/dylan.vim index 81103918..cc22c8f0 100644 --- a/syntax/dylan.vim +++ b/syntax/dylan.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('dylan', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'dylan') finish endif diff --git a/syntax/dylanintr.vim b/syntax/dylanintr.vim index b01740c8..4c049266 100644 --- a/syntax/dylanintr.vim +++ b/syntax/dylanintr.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('dylanintr', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'dylanintr') finish endif diff --git a/syntax/dylanlid.vim b/syntax/dylanlid.vim index c847ab44..b8bb2b26 100644 --- a/syntax/dylanlid.vim +++ b/syntax/dylanlid.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('dylanlid', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'dylanlid') finish endif diff --git a/syntax/ecd.vim b/syntax/ecd.vim index 2a953b6c..2d2feb80 100644 --- a/syntax/ecd.vim +++ b/syntax/ecd.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ecd', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ecd') finish endif diff --git a/syntax/ecrystal.vim b/syntax/ecrystal.vim index 84166ed9..e44fcba6 100644 --- a/syntax/ecrystal.vim +++ b/syntax/ecrystal.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('crystal', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'crystal') finish endif diff --git a/syntax/edif.vim b/syntax/edif.vim index bbe99d1d..41842911 100644 --- a/syntax/edif.vim +++ b/syntax/edif.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('edif', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'edif') finish endif diff --git a/syntax/eelixir.vim b/syntax/eelixir.vim index 947a3cbe..70671ee6 100644 --- a/syntax/eelixir.vim +++ b/syntax/eelixir.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('elixir', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'elixir') finish endif diff --git a/syntax/elf.vim b/syntax/elf.vim index e5532b7f..1e0d7ddd 100644 --- a/syntax/elf.vim +++ b/syntax/elf.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('elf', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'elf') finish endif diff --git a/syntax/elinks.vim b/syntax/elinks.vim index 4b90f02b..e968866e 100644 --- a/syntax/elinks.vim +++ b/syntax/elinks.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('elinks', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'elinks') finish endif diff --git a/syntax/elixir.vim b/syntax/elixir.vim index 70b76e3d..d612da48 100644 --- a/syntax/elixir.vim +++ b/syntax/elixir.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('elixir', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'elixir') finish endif diff --git a/syntax/elm.vim b/syntax/elm.vim index ae095a1b..b655ff17 100644 --- a/syntax/elm.vim +++ b/syntax/elm.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('elm', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'elm') finish endif diff --git a/syntax/elmfilt.vim b/syntax/elmfilt.vim index 1a83f8e9..cb2b5fc4 100644 --- a/syntax/elmfilt.vim +++ b/syntax/elmfilt.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('elmfilt', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'elmfilt') finish endif diff --git a/syntax/embeddedpuppet.vim b/syntax/embeddedpuppet.vim index 1540cb02..a99d8553 100644 --- a/syntax/embeddedpuppet.vim +++ b/syntax/embeddedpuppet.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('puppet', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'puppet') finish endif diff --git a/syntax/ember-script.vim b/syntax/ember-script.vim index e8221930..ed84783e 100644 --- a/syntax/ember-script.vim +++ b/syntax/ember-script.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('emberscript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'emberscript') finish endif diff --git a/syntax/emblem.vim b/syntax/emblem.vim index 08670626..be352a39 100644 --- a/syntax/emblem.vim +++ b/syntax/emblem.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('emblem', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'emblem') finish endif diff --git a/syntax/erlang.vim b/syntax/erlang.vim index 434aeb58..9ba63a78 100644 --- a/syntax/erlang.vim +++ b/syntax/erlang.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('erlang', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'erlang') finish endif diff --git a/syntax/eruby.vim b/syntax/eruby.vim index b129bef7..9dbc9264 100644 --- a/syntax/eruby.vim +++ b/syntax/eruby.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ruby', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ruby') finish endif diff --git a/syntax/esmtprc.vim b/syntax/esmtprc.vim index 13e6b5d7..687d981a 100644 --- a/syntax/esmtprc.vim +++ b/syntax/esmtprc.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('esmtprc', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'esmtprc') finish endif diff --git a/syntax/esqlc.vim b/syntax/esqlc.vim index 038dd307..48f7a2e3 100644 --- a/syntax/esqlc.vim +++ b/syntax/esqlc.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('esqlc', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'esqlc') finish endif diff --git a/syntax/esterel.vim b/syntax/esterel.vim index 69984e9b..84ccfb43 100644 --- a/syntax/esterel.vim +++ b/syntax/esterel.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('esterel', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'esterel') finish endif diff --git a/syntax/eterm.vim b/syntax/eterm.vim index 306b19d7..1da49675 100644 --- a/syntax/eterm.vim +++ b/syntax/eterm.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('eterm', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'eterm') finish endif diff --git a/syntax/exim.vim b/syntax/exim.vim index cd6a0c65..75e18e78 100644 --- a/syntax/exim.vim +++ b/syntax/exim.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('exim', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'exim') finish endif diff --git a/syntax/expect.vim b/syntax/expect.vim index 439d5d3e..1c397fa2 100644 --- a/syntax/expect.vim +++ b/syntax/expect.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('expect', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'expect') finish endif diff --git a/syntax/exports.vim b/syntax/exports.vim index a47d6536..25731dc2 100644 --- a/syntax/exports.vim +++ b/syntax/exports.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('exports', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'exports') finish endif diff --git a/syntax/falcon.vim b/syntax/falcon.vim index b0018389..ac71567b 100644 --- a/syntax/falcon.vim +++ b/syntax/falcon.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('falcon', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'falcon') finish endif diff --git a/syntax/fan.vim b/syntax/fan.vim index 0d1d733a..3e833710 100644 --- a/syntax/fan.vim +++ b/syntax/fan.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('fan', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'fan') finish endif diff --git a/syntax/fbs.vim b/syntax/fbs.vim index eca7d5d9..c83b3fb8 100644 --- a/syntax/fbs.vim +++ b/syntax/fbs.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('flatbuffers', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'flatbuffers') finish endif diff --git a/syntax/fennel.vim b/syntax/fennel.vim index 918d2886..a622754e 100644 --- a/syntax/fennel.vim +++ b/syntax/fennel.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('fennel', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'fennel') finish endif diff --git a/syntax/ferm.vim b/syntax/ferm.vim index f3ed8809..f80f8435 100644 --- a/syntax/ferm.vim +++ b/syntax/ferm.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ferm', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ferm') finish endif diff --git a/syntax/fetchmail.vim b/syntax/fetchmail.vim index e69130f7..e1e5f18a 100644 --- a/syntax/fetchmail.vim +++ b/syntax/fetchmail.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('fetchmail', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'fetchmail') finish endif diff --git a/syntax/fgl.vim b/syntax/fgl.vim index 24cccde9..33c04842 100644 --- a/syntax/fgl.vim +++ b/syntax/fgl.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('fgl', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'fgl') finish endif diff --git a/syntax/fish.vim b/syntax/fish.vim index c2ffeb1a..83fcdb36 100644 --- a/syntax/fish.vim +++ b/syntax/fish.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('fish', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'fish') finish endif diff --git a/syntax/flow.vim b/syntax/flow.vim index ec6f583b..8ede5606 100644 --- a/syntax/flow.vim +++ b/syntax/flow.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('javascript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'javascript') finish endif diff --git a/syntax/focexec.vim b/syntax/focexec.vim index 7bc93bac..a595e924 100644 --- a/syntax/focexec.vim +++ b/syntax/focexec.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('focexec', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'focexec') finish endif diff --git a/syntax/forth.vim b/syntax/forth.vim index 1bf4946f..9c14ed31 100644 --- a/syntax/forth.vim +++ b/syntax/forth.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('forth', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'forth') finish endif diff --git a/syntax/fortran.vim b/syntax/fortran.vim index 5acdf58f..33af9051 100644 --- a/syntax/fortran.vim +++ b/syntax/fortran.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('fortran', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'fortran') finish endif diff --git a/syntax/framescript.vim b/syntax/framescript.vim index 59de43f5..bcc41b80 100644 --- a/syntax/framescript.vim +++ b/syntax/framescript.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('framescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'framescript') finish endif diff --git a/syntax/freebasic.vim b/syntax/freebasic.vim index 42a16b14..ce6350f9 100644 --- a/syntax/freebasic.vim +++ b/syntax/freebasic.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('freebasic', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'freebasic') finish endif diff --git a/syntax/fsharp.vim b/syntax/fsharp.vim index 209639b1..17c78eeb 100644 --- a/syntax/fsharp.vim +++ b/syntax/fsharp.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('fsharp', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'fsharp') finish endif diff --git a/syntax/fstab.vim b/syntax/fstab.vim index a4c44bb4..f4d7a8b6 100644 --- a/syntax/fstab.vim +++ b/syntax/fstab.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('fstab', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'fstab') finish endif diff --git a/syntax/fvwm.vim b/syntax/fvwm.vim index 7ea554d2..7ff6e349 100644 --- a/syntax/fvwm.vim +++ b/syntax/fvwm.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('fvwm', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'fvwm') finish endif diff --git a/syntax/gdb.vim b/syntax/gdb.vim index 31eceac0..b752b763 100644 --- a/syntax/gdb.vim +++ b/syntax/gdb.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('gdb', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'gdb') finish endif diff --git a/syntax/gdmo.vim b/syntax/gdmo.vim index 86f827a6..129ef576 100644 --- a/syntax/gdmo.vim +++ b/syntax/gdmo.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('gdmo', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'gdmo') finish endif diff --git a/syntax/gdscript3.vim b/syntax/gdscript3.vim index b7bc35b4..c5a14154 100644 --- a/syntax/gdscript3.vim +++ b/syntax/gdscript3.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('gdscript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'gdscript') finish endif diff --git a/syntax/gedcom.vim b/syntax/gedcom.vim index 67609240..49a98aa3 100644 --- a/syntax/gedcom.vim +++ b/syntax/gedcom.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('gedcom', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'gedcom') finish endif diff --git a/syntax/git.vim b/syntax/git.vim index 73f7d44e..da953d5e 100644 --- a/syntax/git.vim +++ b/syntax/git.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('git', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'git') finish endif diff --git a/syntax/gitcommit.vim b/syntax/gitcommit.vim index 0ae05f81..36fb3cda 100644 --- a/syntax/gitcommit.vim +++ b/syntax/gitcommit.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('git', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'git') finish endif diff --git a/syntax/gitconfig.vim b/syntax/gitconfig.vim index e0a91a2c..402aa3dc 100644 --- a/syntax/gitconfig.vim +++ b/syntax/gitconfig.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('git', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'git') finish endif diff --git a/syntax/gitignore.vim b/syntax/gitignore.vim index 177713f8..16021dd2 100644 --- a/syntax/gitignore.vim +++ b/syntax/gitignore.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('gitignore', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'gitignore') finish endif diff --git a/syntax/gitolite.vim b/syntax/gitolite.vim index 286fa1b4..377d32b3 100644 --- a/syntax/gitolite.vim +++ b/syntax/gitolite.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('gitolite', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'gitolite') finish endif diff --git a/syntax/gitrebase.vim b/syntax/gitrebase.vim index 344a9269..5a4ec913 100644 --- a/syntax/gitrebase.vim +++ b/syntax/gitrebase.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('git', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'git') finish endif diff --git a/syntax/gitsendemail.vim b/syntax/gitsendemail.vim index 41e0bec8..36205c37 100644 --- a/syntax/gitsendemail.vim +++ b/syntax/gitsendemail.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('git', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'git') finish endif diff --git a/syntax/gkrellmrc.vim b/syntax/gkrellmrc.vim index 68ba85fb..da1483af 100644 --- a/syntax/gkrellmrc.vim +++ b/syntax/gkrellmrc.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('gkrellmrc', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'gkrellmrc') finish endif diff --git a/syntax/glsl.vim b/syntax/glsl.vim index fa81f97a..e911f604 100644 --- a/syntax/glsl.vim +++ b/syntax/glsl.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('glsl', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'glsl') finish endif diff --git a/syntax/gmpl.vim b/syntax/gmpl.vim index 0b410ee8..afcfc9f6 100644 --- a/syntax/gmpl.vim +++ b/syntax/gmpl.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('gmpl', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'gmpl') finish endif diff --git a/syntax/gnash.vim b/syntax/gnash.vim index 6109254b..72d3dac7 100644 --- a/syntax/gnash.vim +++ b/syntax/gnash.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('gnash', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'gnash') finish endif diff --git a/syntax/gnuplot.vim b/syntax/gnuplot.vim index ae42ab8a..66f4e0ec 100644 --- a/syntax/gnuplot.vim +++ b/syntax/gnuplot.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('gnuplot', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'gnuplot') finish endif diff --git a/syntax/go.vim b/syntax/go.vim index b28002ec..249dcee7 100644 --- a/syntax/go.vim +++ b/syntax/go.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('go', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'go') finish endif diff --git a/syntax/godebugoutput.vim b/syntax/godebugoutput.vim index e02d8523..973693ec 100644 --- a/syntax/godebugoutput.vim +++ b/syntax/godebugoutput.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('go', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'go') finish endif diff --git a/syntax/godebugstacktrace.vim b/syntax/godebugstacktrace.vim index 0e25da3b..d0f8ef3f 100644 --- a/syntax/godebugstacktrace.vim +++ b/syntax/godebugstacktrace.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('go', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'go') finish endif diff --git a/syntax/godebugvariables.vim b/syntax/godebugvariables.vim index 1148a534..53ae8f6b 100644 --- a/syntax/godebugvariables.vim +++ b/syntax/godebugvariables.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('go', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'go') finish endif diff --git a/syntax/godefstack.vim b/syntax/godefstack.vim index c20dd5a7..7fd73405 100644 --- a/syntax/godefstack.vim +++ b/syntax/godefstack.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('go', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'go') finish endif diff --git a/syntax/gohtmltmpl.vim b/syntax/gohtmltmpl.vim index 86d59daa..ae3b3e99 100644 --- a/syntax/gohtmltmpl.vim +++ b/syntax/gohtmltmpl.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('go', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'go') finish endif diff --git a/syntax/gomod.vim b/syntax/gomod.vim index 56790034..be365be3 100644 --- a/syntax/gomod.vim +++ b/syntax/gomod.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('go', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'go') finish endif diff --git a/syntax/gotexttmpl.vim b/syntax/gotexttmpl.vim index 6accca5f..10867dc3 100644 --- a/syntax/gotexttmpl.vim +++ b/syntax/gotexttmpl.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('go', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'go') finish endif diff --git a/syntax/gp.vim b/syntax/gp.vim index b60abfd3..f870ed1f 100644 --- a/syntax/gp.vim +++ b/syntax/gp.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('gp', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'gp') finish endif diff --git a/syntax/gpg.vim b/syntax/gpg.vim index f02d6f94..a9125e3d 100644 --- a/syntax/gpg.vim +++ b/syntax/gpg.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('gpg', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'gpg') finish endif diff --git a/syntax/grads.vim b/syntax/grads.vim index d733850e..b0b406b0 100644 --- a/syntax/grads.vim +++ b/syntax/grads.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('grads', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'grads') finish endif diff --git a/syntax/graphql.vim b/syntax/graphql.vim index 58d7584a..c47a8036 100644 --- a/syntax/graphql.vim +++ b/syntax/graphql.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('graphql', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'graphql') finish endif diff --git a/syntax/gretl.vim b/syntax/gretl.vim index 43a41a37..f7e098f0 100644 --- a/syntax/gretl.vim +++ b/syntax/gretl.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('gretl', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'gretl') finish endif diff --git a/syntax/groovy.vim b/syntax/groovy.vim index bfa9ab4c..e24d9fbb 100644 --- a/syntax/groovy.vim +++ b/syntax/groovy.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('groovy', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'groovy') finish endif diff --git a/syntax/group.vim b/syntax/group.vim index ca808bc8..144ec126 100644 --- a/syntax/group.vim +++ b/syntax/group.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('group', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'group') finish endif diff --git a/syntax/grub.vim b/syntax/grub.vim index ff980818..ec70e514 100644 --- a/syntax/grub.vim +++ b/syntax/grub.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('grub', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'grub') finish endif diff --git a/syntax/gsl.vim b/syntax/gsl.vim index fa65bfc3..a83fbbe8 100644 --- a/syntax/gsl.vim +++ b/syntax/gsl.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('gdscript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'gdscript') finish endif diff --git a/syntax/gsp.vim b/syntax/gsp.vim index fd7d3848..a8ca520a 100644 --- a/syntax/gsp.vim +++ b/syntax/gsp.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('gsp', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'gsp') finish endif diff --git a/syntax/gtkrc.vim b/syntax/gtkrc.vim index 4de03a65..1ad0ef0a 100644 --- a/syntax/gtkrc.vim +++ b/syntax/gtkrc.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('gtkrc', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'gtkrc') finish endif diff --git a/syntax/haml.vim b/syntax/haml.vim index 5622da7d..8cac3c6b 100644 --- a/syntax/haml.vim +++ b/syntax/haml.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('haml', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'haml') finish endif diff --git a/syntax/hamster.vim b/syntax/hamster.vim index 956e0aca..14ee8eb4 100644 --- a/syntax/hamster.vim +++ b/syntax/hamster.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('hamster', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'hamster') finish endif diff --git a/syntax/handlebars.vim b/syntax/handlebars.vim index e16e9a04..c56a9aa4 100644 --- a/syntax/handlebars.vim +++ b/syntax/handlebars.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('handlebars', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'handlebars') finish endif diff --git a/syntax/haproxy.vim b/syntax/haproxy.vim index 4871305e..41cdc860 100644 --- a/syntax/haproxy.vim +++ b/syntax/haproxy.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('haproxy', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'haproxy') finish endif diff --git a/syntax/haskell.vim b/syntax/haskell.vim index 0171244b..786eb3c6 100644 --- a/syntax/haskell.vim +++ b/syntax/haskell.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('haskell', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'haskell') finish endif diff --git a/syntax/haste.vim b/syntax/haste.vim index 581c7b12..0133f29a 100644 --- a/syntax/haste.vim +++ b/syntax/haste.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('haste', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'haste') finish endif diff --git a/syntax/hastepreproc.vim b/syntax/hastepreproc.vim index 7d599def..61631aaf 100644 --- a/syntax/hastepreproc.vim +++ b/syntax/hastepreproc.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('hastepreproc', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'hastepreproc') finish endif diff --git a/syntax/haxe.vim b/syntax/haxe.vim index 9e12de94..a78271a5 100644 --- a/syntax/haxe.vim +++ b/syntax/haxe.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('haxe', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'haxe') finish endif diff --git a/syntax/hb.vim b/syntax/hb.vim index ffc392aa..81bb1b04 100644 --- a/syntax/hb.vim +++ b/syntax/hb.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('hb', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'hb') finish endif diff --git a/syntax/hcl.vim b/syntax/hcl.vim index ed2cef86..3dde1b54 100644 --- a/syntax/hcl.vim +++ b/syntax/hcl.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('hcl', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'hcl') finish endif diff --git a/syntax/helm.vim b/syntax/helm.vim index 6182cbd8..4cafa009 100644 --- a/syntax/helm.vim +++ b/syntax/helm.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('helm', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'helm') finish endif diff --git a/syntax/help.vim b/syntax/help.vim index 7bc7dac0..e5e618dc 100644 --- a/syntax/help.vim +++ b/syntax/help.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('help', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'help') finish endif diff --git a/syntax/hercules.vim b/syntax/hercules.vim index e3f429d1..1588de8b 100644 --- a/syntax/hercules.vim +++ b/syntax/hercules.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('hercules', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'hercules') finish endif diff --git a/syntax/hex.vim b/syntax/hex.vim index d1d753a6..36b3bbdd 100644 --- a/syntax/hex.vim +++ b/syntax/hex.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('hex', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'hex') finish endif diff --git a/syntax/hgcommit.vim b/syntax/hgcommit.vim index 1326ef3b..f294b086 100644 --- a/syntax/hgcommit.vim +++ b/syntax/hgcommit.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('hgcommit', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'hgcommit') finish endif diff --git a/syntax/hive.vim b/syntax/hive.vim index c03321d7..85fd8cb8 100644 --- a/syntax/hive.vim +++ b/syntax/hive.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('hive', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'hive') finish endif diff --git a/syntax/hog.vim b/syntax/hog.vim index 96540cfa..4a44d6eb 100644 --- a/syntax/hog.vim +++ b/syntax/hog.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('hog', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'hog') finish endif diff --git a/syntax/hollywood.vim b/syntax/hollywood.vim index 0ba407da..291291f4 100644 --- a/syntax/hollywood.vim +++ b/syntax/hollywood.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('hollywood', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'hollywood') finish endif diff --git a/syntax/hostconf.vim b/syntax/hostconf.vim index bf740b64..01ed2fae 100644 --- a/syntax/hostconf.vim +++ b/syntax/hostconf.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('hostconf', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'hostconf') finish endif diff --git a/syntax/hostsaccess.vim b/syntax/hostsaccess.vim index 9e905ff9..91aa131a 100644 --- a/syntax/hostsaccess.vim +++ b/syntax/hostsaccess.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('hostsaccess', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'hostsaccess') finish endif diff --git a/syntax/html.vim b/syntax/html.vim index 23d33446..ed3b61f1 100644 --- a/syntax/html.vim +++ b/syntax/html.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('html', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'html') finish endif diff --git a/syntax/htmldjango.vim b/syntax/htmldjango.vim index cd7e4660..c29c081e 100644 --- a/syntax/htmldjango.vim +++ b/syntax/htmldjango.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('htmldjango', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'htmldjango') finish endif diff --git a/syntax/htmlm4.vim b/syntax/htmlm4.vim index 6294526f..415f7456 100644 --- a/syntax/htmlm4.vim +++ b/syntax/htmlm4.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('htmlm4', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'htmlm4') finish endif diff --git a/syntax/i3config.vim b/syntax/i3config.vim index c1c78ebb..3fee9860 100644 --- a/syntax/i3config.vim +++ b/syntax/i3config.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('i3', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'i3') finish endif diff --git a/syntax/ibasic.vim b/syntax/ibasic.vim index d80f9caa..4e8dc07c 100644 --- a/syntax/ibasic.vim +++ b/syntax/ibasic.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ibasic', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ibasic') finish endif diff --git a/syntax/icalendar.vim b/syntax/icalendar.vim index 7815de41..3792a713 100644 --- a/syntax/icalendar.vim +++ b/syntax/icalendar.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('icalendar', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'icalendar') finish endif diff --git a/syntax/icemenu.vim b/syntax/icemenu.vim index 928e5c17..8c61c8b7 100644 --- a/syntax/icemenu.vim +++ b/syntax/icemenu.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('icemenu', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'icemenu') finish endif diff --git a/syntax/icon.vim b/syntax/icon.vim index 4f538f3d..ff2c11da 100644 --- a/syntax/icon.vim +++ b/syntax/icon.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('icon', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'icon') finish endif diff --git a/syntax/idris.vim b/syntax/idris.vim index 2b6293a6..b0b04850 100644 --- a/syntax/idris.vim +++ b/syntax/idris.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('idris', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'idris') finish endif diff --git a/syntax/idris2.vim b/syntax/idris2.vim index cf6babd9..db1f6ea7 100644 --- a/syntax/idris2.vim +++ b/syntax/idris2.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('idris2', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'idris2') finish endif diff --git a/syntax/indent.vim b/syntax/indent.vim index d01a007c..7a4d5e91 100644 --- a/syntax/indent.vim +++ b/syntax/indent.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('indent', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'indent') finish endif diff --git a/syntax/inform.vim b/syntax/inform.vim index 29e3f80f..2345e18b 100644 --- a/syntax/inform.vim +++ b/syntax/inform.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('inform', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'inform') finish endif diff --git a/syntax/initng.vim b/syntax/initng.vim index 4950ace9..99541758 100644 --- a/syntax/initng.vim +++ b/syntax/initng.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('initng', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'initng') finish endif diff --git a/syntax/inittab.vim b/syntax/inittab.vim index a024d4a2..72348a2f 100644 --- a/syntax/inittab.vim +++ b/syntax/inittab.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('inittab', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'inittab') finish endif diff --git a/syntax/ion.vim b/syntax/ion.vim index 0f1f82f1..2b270608 100644 --- a/syntax/ion.vim +++ b/syntax/ion.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ion', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ion') finish endif diff --git a/syntax/ipfilter.vim b/syntax/ipfilter.vim index a5db250a..7882eac6 100644 --- a/syntax/ipfilter.vim +++ b/syntax/ipfilter.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ipfilter', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ipfilter') finish endif diff --git a/syntax/iss.vim b/syntax/iss.vim index a1051986..d709bc2f 100644 --- a/syntax/iss.vim +++ b/syntax/iss.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('iss', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'iss') finish endif diff --git a/syntax/ist.vim b/syntax/ist.vim index f6a2da1f..433fcea7 100644 --- a/syntax/ist.vim +++ b/syntax/ist.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ist', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ist') finish endif diff --git a/syntax/j.vim b/syntax/j.vim index 79478af8..07455553 100644 --- a/syntax/j.vim +++ b/syntax/j.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('j', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'j') finish endif diff --git a/syntax/jal.vim b/syntax/jal.vim index 26600dd3..efb2d436 100644 --- a/syntax/jal.vim +++ b/syntax/jal.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('jal', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'jal') finish endif diff --git a/syntax/jam.vim b/syntax/jam.vim index 94dd8ca1..33532601 100644 --- a/syntax/jam.vim +++ b/syntax/jam.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('jam', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'jam') finish endif diff --git a/syntax/java.vim b/syntax/java.vim index 5ca7e105..bef8f40e 100644 --- a/syntax/java.vim +++ b/syntax/java.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('java', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'java') finish endif diff --git a/syntax/javacc.vim b/syntax/javacc.vim index 2ffc3e93..83e34486 100644 --- a/syntax/javacc.vim +++ b/syntax/javacc.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('javacc', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'javacc') finish endif diff --git a/syntax/javascript.vim b/syntax/javascript.vim index 65b351a9..823eec2e 100644 --- a/syntax/javascript.vim +++ b/syntax/javascript.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('javascript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'javascript') finish endif diff --git a/syntax/jess.vim b/syntax/jess.vim index 8897782a..8f14dff6 100644 --- a/syntax/jess.vim +++ b/syntax/jess.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('jess', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'jess') finish endif diff --git a/syntax/jgraph.vim b/syntax/jgraph.vim index e27f40b5..32ec9352 100644 --- a/syntax/jgraph.vim +++ b/syntax/jgraph.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('jgraph', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'jgraph') finish endif diff --git a/syntax/jinja2.vim b/syntax/jinja2.vim index ccecd45c..f7ca3ad4 100644 --- a/syntax/jinja2.vim +++ b/syntax/jinja2.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ansible', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ansible') finish endif diff --git a/syntax/jovial.vim b/syntax/jovial.vim index 7b34dea0..74547301 100644 --- a/syntax/jovial.vim +++ b/syntax/jovial.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('jovial', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'jovial') finish endif diff --git a/syntax/jproperties.vim b/syntax/jproperties.vim index 1b28bc00..f4edfd93 100644 --- a/syntax/jproperties.vim +++ b/syntax/jproperties.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('jproperties', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'jproperties') finish endif diff --git a/syntax/jq.vim b/syntax/jq.vim index 11ec862e..1597620c 100644 --- a/syntax/jq.vim +++ b/syntax/jq.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('jq', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'jq') finish endif diff --git a/syntax/json.vim b/syntax/json.vim index e6395aca..5f988ca8 100644 --- a/syntax/json.vim +++ b/syntax/json.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('json', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'json') finish endif diff --git a/syntax/json5.vim b/syntax/json5.vim index def6b747..a6498268 100644 --- a/syntax/json5.vim +++ b/syntax/json5.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('json5', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'json5') finish endif diff --git a/syntax/jsonnet.vim b/syntax/jsonnet.vim index c2aa40cc..54dfa2d7 100644 --- a/syntax/jsonnet.vim +++ b/syntax/jsonnet.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('jsonnet', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'jsonnet') finish endif diff --git a/syntax/jsp.vim b/syntax/jsp.vim index 49436c2f..221b7a70 100644 --- a/syntax/jsp.vim +++ b/syntax/jsp.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('jsp', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'jsp') finish endif diff --git a/syntax/jst.vim b/syntax/jst.vim index ce4f1f0b..907b3031 100644 --- a/syntax/jst.vim +++ b/syntax/jst.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('jst', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'jst') finish endif diff --git a/syntax/julia.vim b/syntax/julia.vim index 0cbe23ec..1d0c805b 100644 --- a/syntax/julia.vim +++ b/syntax/julia.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('julia', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'julia') finish endif diff --git a/syntax/juliadoc.vim b/syntax/juliadoc.vim index 5e2a32e3..29c9e317 100644 --- a/syntax/juliadoc.vim +++ b/syntax/juliadoc.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('julia', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'julia') finish endif diff --git a/syntax/kconfig.vim b/syntax/kconfig.vim index 9780aacd..933d32f8 100644 --- a/syntax/kconfig.vim +++ b/syntax/kconfig.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('kconfig', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'kconfig') finish endif diff --git a/syntax/kivy.vim b/syntax/kivy.vim index 998f3692..808f6c84 100644 --- a/syntax/kivy.vim +++ b/syntax/kivy.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('kivy', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'kivy') finish endif diff --git a/syntax/kix.vim b/syntax/kix.vim index 182a3cb7..50d135c9 100644 --- a/syntax/kix.vim +++ b/syntax/kix.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('kix', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'kix') finish endif diff --git a/syntax/kotlin.vim b/syntax/kotlin.vim index 268c9768..51f3a403 100644 --- a/syntax/kotlin.vim +++ b/syntax/kotlin.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('kotlin', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'kotlin') finish endif diff --git a/syntax/kscript.vim b/syntax/kscript.vim index d460e152..8228cc20 100644 --- a/syntax/kscript.vim +++ b/syntax/kscript.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('kscript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'kscript') finish endif diff --git a/syntax/kwt.vim b/syntax/kwt.vim index 7e895159..116c2fa0 100644 --- a/syntax/kwt.vim +++ b/syntax/kwt.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('kwt', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'kwt') finish endif diff --git a/syntax/lace.vim b/syntax/lace.vim index 87b35e6c..e42693d0 100644 --- a/syntax/lace.vim +++ b/syntax/lace.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('lace', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'lace') finish endif diff --git a/syntax/latte.vim b/syntax/latte.vim index ee4e34cd..55708431 100644 --- a/syntax/latte.vim +++ b/syntax/latte.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('latte', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'latte') finish endif diff --git a/syntax/ld.vim b/syntax/ld.vim index b5293691..37cb698e 100644 --- a/syntax/ld.vim +++ b/syntax/ld.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ld', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ld') finish endif diff --git a/syntax/ldif.vim b/syntax/ldif.vim index c5177feb..01ee2cd5 100644 --- a/syntax/ldif.vim +++ b/syntax/ldif.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ldif', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ldif') finish endif diff --git a/syntax/ledger.vim b/syntax/ledger.vim index 9f523009..d3758d84 100644 --- a/syntax/ledger.vim +++ b/syntax/ledger.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ledger', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ledger') finish endif diff --git a/syntax/less.vim b/syntax/less.vim index a7224eaa..daa82949 100644 --- a/syntax/less.vim +++ b/syntax/less.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('less', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'less') finish endif diff --git a/syntax/lex.vim b/syntax/lex.vim index 517dc247..ebeb6f12 100644 --- a/syntax/lex.vim +++ b/syntax/lex.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('lex', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'lex') finish endif diff --git a/syntax/lftp.vim b/syntax/lftp.vim index 92711ff5..29e35ada 100644 --- a/syntax/lftp.vim +++ b/syntax/lftp.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('lftp', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'lftp') finish endif diff --git a/syntax/lhaskell.vim b/syntax/lhaskell.vim index 19319c19..2db773e6 100644 --- a/syntax/lhaskell.vim +++ b/syntax/lhaskell.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('lhaskell', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'lhaskell') finish endif diff --git a/syntax/libao.vim b/syntax/libao.vim index f41a9cf0..d5dce92e 100644 --- a/syntax/libao.vim +++ b/syntax/libao.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('libao', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'libao') finish endif diff --git a/syntax/lidris.vim b/syntax/lidris.vim index 612b52e1..8396c699 100644 --- a/syntax/lidris.vim +++ b/syntax/lidris.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('idris', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'idris') finish endif diff --git a/syntax/lidris2.vim b/syntax/lidris2.vim index 7b9b1a9c..ba83b3b2 100644 --- a/syntax/lidris2.vim +++ b/syntax/lidris2.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('idris2', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'idris2') finish endif diff --git a/syntax/lifelines.vim b/syntax/lifelines.vim index f7f50e09..d6cc7b3d 100644 --- a/syntax/lifelines.vim +++ b/syntax/lifelines.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('lifelines', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'lifelines') finish endif diff --git a/syntax/lilo.vim b/syntax/lilo.vim index 92d73e9d..c3fbe021 100644 --- a/syntax/lilo.vim +++ b/syntax/lilo.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('lilo', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'lilo') finish endif diff --git a/syntax/lilypond-words.vim b/syntax/lilypond-words.vim index 292dac27..5376893d 100644 --- a/syntax/lilypond-words.vim +++ b/syntax/lilypond-words.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('lilypond', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'lilypond') finish endif diff --git a/syntax/lilypond.vim b/syntax/lilypond.vim index b0792abf..8bc2d63b 100644 --- a/syntax/lilypond.vim +++ b/syntax/lilypond.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('lilypond', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'lilypond') finish endif diff --git a/syntax/limits.vim b/syntax/limits.vim index b1057fb7..31bda9ee 100644 --- a/syntax/limits.vim +++ b/syntax/limits.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('limits', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'limits') finish endif diff --git a/syntax/liquid.vim b/syntax/liquid.vim index ad738fb5..34d1971d 100644 --- a/syntax/liquid.vim +++ b/syntax/liquid.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('liquid', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'liquid') finish endif diff --git a/syntax/lisp.vim b/syntax/lisp.vim index 501bd655..0ca370c9 100644 --- a/syntax/lisp.vim +++ b/syntax/lisp.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('lisp', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'lisp') finish endif diff --git a/syntax/litcoffee.vim b/syntax/litcoffee.vim index 6ddfce8a..3295ad71 100644 --- a/syntax/litcoffee.vim +++ b/syntax/litcoffee.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('coffee-script', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'coffee-script') finish endif diff --git a/syntax/lite.vim b/syntax/lite.vim index 73664c67..0a6f3f3c 100644 --- a/syntax/lite.vim +++ b/syntax/lite.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('lite', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'lite') finish endif diff --git a/syntax/litestep.vim b/syntax/litestep.vim index eedf2730..f456f4c2 100644 --- a/syntax/litestep.vim +++ b/syntax/litestep.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('litestep', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'litestep') finish endif diff --git a/syntax/llvm.vim b/syntax/llvm.vim index d98c255d..9c111c6e 100644 --- a/syntax/llvm.vim +++ b/syntax/llvm.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('llvm', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'llvm') finish endif diff --git a/syntax/log.vim b/syntax/log.vim index 8c5b5ec2..e045d715 100644 --- a/syntax/log.vim +++ b/syntax/log.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('log', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'log') finish endif diff --git a/syntax/loginaccess.vim b/syntax/loginaccess.vim index 6dc8d6a9..4ec1ddeb 100644 --- a/syntax/loginaccess.vim +++ b/syntax/loginaccess.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('loginaccess', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'loginaccess') finish endif diff --git a/syntax/logindefs.vim b/syntax/logindefs.vim index 9773f12d..a7809ed0 100644 --- a/syntax/logindefs.vim +++ b/syntax/logindefs.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('logindefs', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'logindefs') finish endif diff --git a/syntax/logtalk.vim b/syntax/logtalk.vim index 48c6621a..1bca4267 100644 --- a/syntax/logtalk.vim +++ b/syntax/logtalk.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('logtalk', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'logtalk') finish endif diff --git a/syntax/lotos.vim b/syntax/lotos.vim index e66f1442..e719cb4b 100644 --- a/syntax/lotos.vim +++ b/syntax/lotos.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('lotos', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'lotos') finish endif diff --git a/syntax/lout.vim b/syntax/lout.vim index 9d7c28a9..6376bef9 100644 --- a/syntax/lout.vim +++ b/syntax/lout.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('lout', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'lout') finish endif diff --git a/syntax/lpc.vim b/syntax/lpc.vim index de5bc3c7..53dbffff 100644 --- a/syntax/lpc.vim +++ b/syntax/lpc.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('lpc', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'lpc') finish endif diff --git a/syntax/lprolog.vim b/syntax/lprolog.vim index c8454ca6..2c52f60e 100644 --- a/syntax/lprolog.vim +++ b/syntax/lprolog.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('lprolog', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'lprolog') finish endif diff --git a/syntax/ls.vim b/syntax/ls.vim index 77055451..489efc71 100644 --- a/syntax/ls.vim +++ b/syntax/ls.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('livescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'livescript') finish endif diff --git a/syntax/lsl.vim b/syntax/lsl.vim index bede1c1e..d4f6e6f8 100644 --- a/syntax/lsl.vim +++ b/syntax/lsl.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('lsl', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'lsl') finish endif diff --git a/syntax/lss.vim b/syntax/lss.vim index ce3a8c8e..8b5dab6a 100644 --- a/syntax/lss.vim +++ b/syntax/lss.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('lss', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'lss') finish endif diff --git a/syntax/lua.vim b/syntax/lua.vim index a88cda51..fb8412b9 100644 --- a/syntax/lua.vim +++ b/syntax/lua.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('lua', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'lua') finish endif diff --git a/syntax/lynx.vim b/syntax/lynx.vim index 3f819319..f6d3159e 100644 --- a/syntax/lynx.vim +++ b/syntax/lynx.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('lynx', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'lynx') finish endif diff --git a/syntax/m4.vim b/syntax/m4.vim index 9c872bb2..c015eeb8 100644 --- a/syntax/m4.vim +++ b/syntax/m4.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('m4', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'm4') finish endif diff --git a/syntax/mail.vim b/syntax/mail.vim index ff2bb797..08bd2098 100644 --- a/syntax/mail.vim +++ b/syntax/mail.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('mail', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'mail') finish endif diff --git a/syntax/mailaliases.vim b/syntax/mailaliases.vim index 337eacea..b67f6771 100644 --- a/syntax/mailaliases.vim +++ b/syntax/mailaliases.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('mailaliases', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'mailaliases') finish endif diff --git a/syntax/mailcap.vim b/syntax/mailcap.vim index 1af4e0b9..cb197f8c 100644 --- a/syntax/mailcap.vim +++ b/syntax/mailcap.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('mailcap', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'mailcap') finish endif diff --git a/syntax/make.vim b/syntax/make.vim index b1e88274..b096cc52 100644 --- a/syntax/make.vim +++ b/syntax/make.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('make', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'make') finish endif diff --git a/syntax/mako.vim b/syntax/mako.vim index f1c75b87..a232f52a 100644 --- a/syntax/mako.vim +++ b/syntax/mako.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('mako', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'mako') finish endif diff --git a/syntax/mallard.vim b/syntax/mallard.vim index bb4a789e..b2114886 100644 --- a/syntax/mallard.vim +++ b/syntax/mallard.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('mallard', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'mallard') finish endif diff --git a/syntax/manconf.vim b/syntax/manconf.vim index d578fa6a..4dbee625 100644 --- a/syntax/manconf.vim +++ b/syntax/manconf.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('manconf', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'manconf') finish endif diff --git a/syntax/maple.vim b/syntax/maple.vim index 5d72a609..71508463 100644 --- a/syntax/maple.vim +++ b/syntax/maple.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('maple', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'maple') finish endif diff --git a/syntax/markdown.vim b/syntax/markdown.vim index de27f7ab..56e349e4 100644 --- a/syntax/markdown.vim +++ b/syntax/markdown.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('markdown', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'markdown') finish endif diff --git a/syntax/mason.vim b/syntax/mason.vim index 8af033ac..afbe3389 100644 --- a/syntax/mason.vim +++ b/syntax/mason.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('perl', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'perl') finish endif diff --git a/syntax/master.vim b/syntax/master.vim index 304c45a7..db51765e 100644 --- a/syntax/master.vim +++ b/syntax/master.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('master', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'master') finish endif diff --git a/syntax/mel.vim b/syntax/mel.vim index 88d2bd6c..02821a5d 100644 --- a/syntax/mel.vim +++ b/syntax/mel.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('mel', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'mel') finish endif diff --git a/syntax/merlin.vim b/syntax/merlin.vim index 99594704..4c6b9cd2 100644 --- a/syntax/merlin.vim +++ b/syntax/merlin.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('reason', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'reason') finish endif diff --git a/syntax/meson.vim b/syntax/meson.vim index 9f3e2a42..0ad43cc1 100644 --- a/syntax/meson.vim +++ b/syntax/meson.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('meson', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'meson') finish endif diff --git a/syntax/messages.vim b/syntax/messages.vim index 3a9f060c..fc11c54d 100644 --- a/syntax/messages.vim +++ b/syntax/messages.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('messages', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'messages') finish endif diff --git a/syntax/mf.vim b/syntax/mf.vim index 87960556..08115912 100644 --- a/syntax/mf.vim +++ b/syntax/mf.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('mf', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'mf') finish endif diff --git a/syntax/mgl.vim b/syntax/mgl.vim index 21eb16c6..e8ee3fe6 100644 --- a/syntax/mgl.vim +++ b/syntax/mgl.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('mgl', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'mgl') finish endif diff --git a/syntax/mgp.vim b/syntax/mgp.vim index dbcc965c..d9e5ced1 100644 --- a/syntax/mgp.vim +++ b/syntax/mgp.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('mgp', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'mgp') finish endif diff --git a/syntax/mib.vim b/syntax/mib.vim index 67ca47bf..ed0155fe 100644 --- a/syntax/mib.vim +++ b/syntax/mib.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('mib', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'mib') finish endif diff --git a/syntax/mix.vim b/syntax/mix.vim index 1b14d6a5..b28f9dbe 100644 --- a/syntax/mix.vim +++ b/syntax/mix.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('mix', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'mix') finish endif diff --git a/syntax/mma.vim b/syntax/mma.vim index c9c0f6ee..663ca18b 100644 --- a/syntax/mma.vim +++ b/syntax/mma.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('mathematica', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'mathematica') finish endif diff --git a/syntax/mmp.vim b/syntax/mmp.vim index 55e946e4..1ea49fa5 100644 --- a/syntax/mmp.vim +++ b/syntax/mmp.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('mmp', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'mmp') finish endif diff --git a/syntax/modconf.vim b/syntax/modconf.vim index dcf1ffa7..fd9f0da8 100644 --- a/syntax/modconf.vim +++ b/syntax/modconf.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('modconf', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'modconf') finish endif diff --git a/syntax/modula2.vim b/syntax/modula2.vim index 9a6d3d72..dd3111e7 100644 --- a/syntax/modula2.vim +++ b/syntax/modula2.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('modula2', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'modula2') finish endif diff --git a/syntax/modula3.vim b/syntax/modula3.vim index d27fb0e2..37025293 100644 --- a/syntax/modula3.vim +++ b/syntax/modula3.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('modula3', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'modula3') finish endif diff --git a/syntax/monk.vim b/syntax/monk.vim index ebea4a3d..3c598dde 100644 --- a/syntax/monk.vim +++ b/syntax/monk.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('monk', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'monk') finish endif diff --git a/syntax/moo.vim b/syntax/moo.vim index 20461bf2..c14d4fa5 100644 --- a/syntax/moo.vim +++ b/syntax/moo.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('moo', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'moo') finish endif diff --git a/syntax/moon.vim b/syntax/moon.vim index d7503482..329a283a 100644 --- a/syntax/moon.vim +++ b/syntax/moon.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('moonscript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'moonscript') finish endif diff --git a/syntax/mp.vim b/syntax/mp.vim index 95564a11..4e915cc6 100644 --- a/syntax/mp.vim +++ b/syntax/mp.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('mp', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'mp') finish endif diff --git a/syntax/mplayerconf.vim b/syntax/mplayerconf.vim index 6d8ca035..d97b0155 100644 --- a/syntax/mplayerconf.vim +++ b/syntax/mplayerconf.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('mplayerconf', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'mplayerconf') finish endif diff --git a/syntax/mrxvtrc.vim b/syntax/mrxvtrc.vim index 61d773ae..592d5c77 100644 --- a/syntax/mrxvtrc.vim +++ b/syntax/mrxvtrc.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('mrxvtrc', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'mrxvtrc') finish endif diff --git a/syntax/msidl.vim b/syntax/msidl.vim index 1734105e..a86f271f 100644 --- a/syntax/msidl.vim +++ b/syntax/msidl.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('msidl', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'msidl') finish endif diff --git a/syntax/msql.vim b/syntax/msql.vim index b8f058e5..43e19921 100644 --- a/syntax/msql.vim +++ b/syntax/msql.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('msql', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'msql') finish endif diff --git a/syntax/mupad.vim b/syntax/mupad.vim index 924d0806..07dc80aa 100644 --- a/syntax/mupad.vim +++ b/syntax/mupad.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('mupad', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'mupad') finish endif diff --git a/syntax/murphi.vim b/syntax/murphi.vim index ab38abf4..66787796 100644 --- a/syntax/murphi.vim +++ b/syntax/murphi.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('murphi', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'murphi') finish endif diff --git a/syntax/mush.vim b/syntax/mush.vim index 329cb5c3..dce86542 100644 --- a/syntax/mush.vim +++ b/syntax/mush.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('mush', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'mush') finish endif diff --git a/syntax/mustache.vim b/syntax/mustache.vim index ece71e3c..3f0db419 100644 --- a/syntax/mustache.vim +++ b/syntax/mustache.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('handlebars', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'handlebars') finish endif diff --git a/syntax/muttrc.vim b/syntax/muttrc.vim index c7c863dd..62991e53 100644 --- a/syntax/muttrc.vim +++ b/syntax/muttrc.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('muttrc', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'muttrc') finish endif diff --git a/syntax/mysql.vim b/syntax/mysql.vim index a90e8920..8012997b 100644 --- a/syntax/mysql.vim +++ b/syntax/mysql.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('mysql', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'mysql') finish endif diff --git a/syntax/n1ql.vim b/syntax/n1ql.vim index b2133f27..a007475f 100644 --- a/syntax/n1ql.vim +++ b/syntax/n1ql.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('n1ql', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'n1ql') finish endif diff --git a/syntax/named.vim b/syntax/named.vim index f3997ee7..b8684bde 100644 --- a/syntax/named.vim +++ b/syntax/named.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('named', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'named') finish endif diff --git a/syntax/nanorc.vim b/syntax/nanorc.vim index fa68d216..57d8d282 100644 --- a/syntax/nanorc.vim +++ b/syntax/nanorc.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('nanorc', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'nanorc') finish endif diff --git a/syntax/natural.vim b/syntax/natural.vim index b58c22f2..bb9093ff 100644 --- a/syntax/natural.vim +++ b/syntax/natural.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('natural', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'natural') finish endif diff --git a/syntax/ncf.vim b/syntax/ncf.vim index a4552f6f..83254599 100644 --- a/syntax/ncf.vim +++ b/syntax/ncf.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ncf', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ncf') finish endif diff --git a/syntax/neomuttrc.vim b/syntax/neomuttrc.vim index afac90fc..a43fb35b 100644 --- a/syntax/neomuttrc.vim +++ b/syntax/neomuttrc.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('neomuttrc', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'neomuttrc') finish endif diff --git a/syntax/netrc.vim b/syntax/netrc.vim index 05ecbc0a..58e14258 100644 --- a/syntax/netrc.vim +++ b/syntax/netrc.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('netrc', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'netrc') finish endif diff --git a/syntax/nginx.vim b/syntax/nginx.vim index 565fe776..fc2ec5ca 100644 --- a/syntax/nginx.vim +++ b/syntax/nginx.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('nginx', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'nginx') finish endif diff --git a/syntax/nim.vim b/syntax/nim.vim index 0ab2c10b..41b943cc 100644 --- a/syntax/nim.vim +++ b/syntax/nim.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('nim', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'nim') finish endif diff --git a/syntax/ninja.vim b/syntax/ninja.vim index 77423ce7..5a5717fd 100644 --- a/syntax/ninja.vim +++ b/syntax/ninja.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ninja', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ninja') finish endif diff --git a/syntax/nix.vim b/syntax/nix.vim index 1d4ba43d..66f88199 100644 --- a/syntax/nix.vim +++ b/syntax/nix.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('nix', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'nix') finish endif diff --git a/syntax/nqc.vim b/syntax/nqc.vim index 7d7c8846..c5fd12b3 100644 --- a/syntax/nqc.vim +++ b/syntax/nqc.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('nqc', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'nqc') finish endif diff --git a/syntax/nroff.vim b/syntax/nroff.vim index f99eff57..915d6a23 100644 --- a/syntax/nroff.vim +++ b/syntax/nroff.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('nroff', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'nroff') finish endif diff --git a/syntax/nsis.vim b/syntax/nsis.vim index 01c90244..b930ae3c 100644 --- a/syntax/nsis.vim +++ b/syntax/nsis.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('nsis', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'nsis') finish endif diff --git a/syntax/oasis.vim b/syntax/oasis.vim index 0acafa83..3008d489 100644 --- a/syntax/oasis.vim +++ b/syntax/oasis.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ocaml', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ocaml') finish endif diff --git a/syntax/obj.vim b/syntax/obj.vim index 3c36958e..5a9d0a29 100644 --- a/syntax/obj.vim +++ b/syntax/obj.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('obj', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'obj') finish endif diff --git a/syntax/ocaml.vim b/syntax/ocaml.vim index 8cf6fb67..bfe6e1e3 100644 --- a/syntax/ocaml.vim +++ b/syntax/ocaml.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ocaml', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ocaml') finish endif diff --git a/syntax/ocamlbuild_tags.vim b/syntax/ocamlbuild_tags.vim index d814c526..d1f968c1 100644 --- a/syntax/ocamlbuild_tags.vim +++ b/syntax/ocamlbuild_tags.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ocaml', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ocaml') finish endif diff --git a/syntax/occam.vim b/syntax/occam.vim index 11c715eb..f86a17c9 100644 --- a/syntax/occam.vim +++ b/syntax/occam.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('occam', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'occam') finish endif diff --git a/syntax/ocpbuild.vim b/syntax/ocpbuild.vim index ac30f6b3..c6df2b2b 100644 --- a/syntax/ocpbuild.vim +++ b/syntax/ocpbuild.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ocaml', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ocaml') finish endif diff --git a/syntax/ocpbuildroot.vim b/syntax/ocpbuildroot.vim index 58a7dfa1..16379057 100644 --- a/syntax/ocpbuildroot.vim +++ b/syntax/ocpbuildroot.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ocaml', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ocaml') finish endif diff --git a/syntax/octave.vim b/syntax/octave.vim index d92377a8..889f45a6 100644 --- a/syntax/octave.vim +++ b/syntax/octave.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('octave', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'octave') finish endif diff --git a/syntax/odin.vim b/syntax/odin.vim index 5600f7a4..d401c2e6 100644 --- a/syntax/odin.vim +++ b/syntax/odin.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('odin', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'odin') finish endif diff --git a/syntax/omake.vim b/syntax/omake.vim index fb0f9a19..c3225b0a 100644 --- a/syntax/omake.vim +++ b/syntax/omake.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ocaml', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ocaml') finish endif diff --git a/syntax/omnimark.vim b/syntax/omnimark.vim index a27c2007..73668e81 100644 --- a/syntax/omnimark.vim +++ b/syntax/omnimark.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('omnimark', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'omnimark') finish endif diff --git a/syntax/opam.vim b/syntax/opam.vim index 338d77be..0f9a448b 100644 --- a/syntax/opam.vim +++ b/syntax/opam.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ocaml', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ocaml') finish endif diff --git a/syntax/opencl.vim b/syntax/opencl.vim index db5cca84..0aff1fc6 100644 --- a/syntax/opencl.vim +++ b/syntax/opencl.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('opencl', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'opencl') finish endif diff --git a/syntax/openroad.vim b/syntax/openroad.vim index af092703..3fded923 100644 --- a/syntax/openroad.vim +++ b/syntax/openroad.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('openroad', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'openroad') finish endif diff --git a/syntax/opl.vim b/syntax/opl.vim index 1ba40a2e..e177ff34 100644 --- a/syntax/opl.vim +++ b/syntax/opl.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('opl', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'opl') finish endif diff --git a/syntax/ora.vim b/syntax/ora.vim index 96d91a30..ff465a6d 100644 --- a/syntax/ora.vim +++ b/syntax/ora.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ora', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ora') finish endif diff --git a/syntax/pamconf.vim b/syntax/pamconf.vim index 66c7d74f..de31e781 100644 --- a/syntax/pamconf.vim +++ b/syntax/pamconf.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('pamconf', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'pamconf') finish endif diff --git a/syntax/pamenv.vim b/syntax/pamenv.vim index 75a0c4eb..c5af0cc1 100644 --- a/syntax/pamenv.vim +++ b/syntax/pamenv.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('pamenv', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'pamenv') finish endif diff --git a/syntax/papp.vim b/syntax/papp.vim index d07ca3e4..4d12eb2c 100644 --- a/syntax/papp.vim +++ b/syntax/papp.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('papp', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'papp') finish endif diff --git a/syntax/pascal.vim b/syntax/pascal.vim index 76344e18..783116d7 100644 --- a/syntax/pascal.vim +++ b/syntax/pascal.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('pascal', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'pascal') finish endif diff --git a/syntax/passwd.vim b/syntax/passwd.vim index 25ba4a09..ff0fbc90 100644 --- a/syntax/passwd.vim +++ b/syntax/passwd.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('passwd', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'passwd') finish endif diff --git a/syntax/pccts.vim b/syntax/pccts.vim index 4f0fba7a..3cb25290 100644 --- a/syntax/pccts.vim +++ b/syntax/pccts.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('pccts', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'pccts') finish endif diff --git a/syntax/pdf.vim b/syntax/pdf.vim index a0012c31..e300364f 100644 --- a/syntax/pdf.vim +++ b/syntax/pdf.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('pdf', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'pdf') finish endif diff --git a/syntax/perl.vim b/syntax/perl.vim index bea6df6b..ce136bf6 100644 --- a/syntax/perl.vim +++ b/syntax/perl.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('perl', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'perl') finish endif diff --git a/syntax/pf.vim b/syntax/pf.vim index 8d8554a1..6a7335fd 100644 --- a/syntax/pf.vim +++ b/syntax/pf.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('pf', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'pf') finish endif diff --git a/syntax/pfmain.vim b/syntax/pfmain.vim index 7ba7e62c..65ce3d9e 100644 --- a/syntax/pfmain.vim +++ b/syntax/pfmain.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('pfmain', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'pfmain') finish endif diff --git a/syntax/pgsql.vim b/syntax/pgsql.vim index 92163f6c..dc2100bf 100644 --- a/syntax/pgsql.vim +++ b/syntax/pgsql.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('pgsql', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'pgsql') finish endif diff --git a/syntax/php.vim b/syntax/php.vim index ffb5c64d..f221f492 100644 --- a/syntax/php.vim +++ b/syntax/php.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('php', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'php') finish endif diff --git a/syntax/pike.vim b/syntax/pike.vim index 2a4acce4..9248cc9d 100644 --- a/syntax/pike.vim +++ b/syntax/pike.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('pike', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'pike') finish endif diff --git a/syntax/pilrc.vim b/syntax/pilrc.vim index fd6ecad6..72c76ecc 100644 --- a/syntax/pilrc.vim +++ b/syntax/pilrc.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('pilrc', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'pilrc') finish endif diff --git a/syntax/pine.vim b/syntax/pine.vim index 344aa0f4..0cec064e 100644 --- a/syntax/pine.vim +++ b/syntax/pine.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('pine', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'pine') finish endif diff --git a/syntax/pinfo.vim b/syntax/pinfo.vim index 6319ef5d..d1602cb1 100644 --- a/syntax/pinfo.vim +++ b/syntax/pinfo.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('pinfo', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'pinfo') finish endif diff --git a/syntax/plantuml.vim b/syntax/plantuml.vim index 594a5615..320f3560 100644 --- a/syntax/plantuml.vim +++ b/syntax/plantuml.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('plantuml', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'plantuml') finish endif diff --git a/syntax/pli.vim b/syntax/pli.vim index 9f935118..b5731016 100644 --- a/syntax/pli.vim +++ b/syntax/pli.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('pli', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'pli') finish endif diff --git a/syntax/plm.vim b/syntax/plm.vim index 9bce4e0c..cb3e761b 100644 --- a/syntax/plm.vim +++ b/syntax/plm.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('plm', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'plm') finish endif diff --git a/syntax/plp.vim b/syntax/plp.vim index 34ab9290..d2bda89e 100644 --- a/syntax/plp.vim +++ b/syntax/plp.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('plp', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'plp') finish endif diff --git a/syntax/plsql.vim b/syntax/plsql.vim index ce0a7eb1..07b4a4db 100644 --- a/syntax/plsql.vim +++ b/syntax/plsql.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('plsql', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'plsql') finish endif diff --git a/syntax/po.vim b/syntax/po.vim index c852b71c..f6cf63cb 100644 --- a/syntax/po.vim +++ b/syntax/po.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('po', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'po') finish endif diff --git a/syntax/pod.vim b/syntax/pod.vim index d67b15cc..7f779054 100644 --- a/syntax/pod.vim +++ b/syntax/pod.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('perl', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'perl') finish endif diff --git a/syntax/pony.vim b/syntax/pony.vim index dcb3bc1a..7374fb6f 100644 --- a/syntax/pony.vim +++ b/syntax/pony.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('pony', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'pony') finish endif diff --git a/syntax/postscr.vim b/syntax/postscr.vim index 6053453a..0f4725ec 100644 --- a/syntax/postscr.vim +++ b/syntax/postscr.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('postscr', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'postscr') finish endif diff --git a/syntax/pov.vim b/syntax/pov.vim index 79fe9210..6ee9c715 100644 --- a/syntax/pov.vim +++ b/syntax/pov.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('pov', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'pov') finish endif diff --git a/syntax/povini.vim b/syntax/povini.vim index 9dce65b3..24cb9ed9 100644 --- a/syntax/povini.vim +++ b/syntax/povini.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('povini', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'povini') finish endif diff --git a/syntax/ppd.vim b/syntax/ppd.vim index d1dd040d..71c579e2 100644 --- a/syntax/ppd.vim +++ b/syntax/ppd.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ppd', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ppd') finish endif diff --git a/syntax/ppwiz.vim b/syntax/ppwiz.vim index c32b32d5..1bce02ff 100644 --- a/syntax/ppwiz.vim +++ b/syntax/ppwiz.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ppwiz', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ppwiz') finish endif diff --git a/syntax/privoxy.vim b/syntax/privoxy.vim index 6dfe03b6..82529f44 100644 --- a/syntax/privoxy.vim +++ b/syntax/privoxy.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('privoxy', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'privoxy') finish endif diff --git a/syntax/procmail.vim b/syntax/procmail.vim index f10d3eb1..7ca368e4 100644 --- a/syntax/procmail.vim +++ b/syntax/procmail.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('procmail', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'procmail') finish endif diff --git a/syntax/prolog.vim b/syntax/prolog.vim index a38a82b7..9498e5f3 100644 --- a/syntax/prolog.vim +++ b/syntax/prolog.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('prolog', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'prolog') finish endif diff --git a/syntax/promela.vim b/syntax/promela.vim index 60862860..fb7ef3e2 100644 --- a/syntax/promela.vim +++ b/syntax/promela.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('promela', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'promela') finish endif diff --git a/syntax/proto.vim b/syntax/proto.vim index 95d604c1..ac6bf544 100644 --- a/syntax/proto.vim +++ b/syntax/proto.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('protobuf', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'protobuf') finish endif diff --git a/syntax/protocols.vim b/syntax/protocols.vim index 0a53772c..9abdacd4 100644 --- a/syntax/protocols.vim +++ b/syntax/protocols.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('protocols', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'protocols') finish endif diff --git a/syntax/ps1.vim b/syntax/ps1.vim index d7c5ecda..97901fbc 100644 --- a/syntax/ps1.vim +++ b/syntax/ps1.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('powershell', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'powershell') finish endif diff --git a/syntax/ps1xml.vim b/syntax/ps1xml.vim index 06ff97da..a0b58236 100644 --- a/syntax/ps1xml.vim +++ b/syntax/ps1xml.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('powershell', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'powershell') finish endif diff --git a/syntax/psf.vim b/syntax/psf.vim index 25176c96..6ae651d5 100644 --- a/syntax/psf.vim +++ b/syntax/psf.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('psf', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'psf') finish endif diff --git a/syntax/pug.vim b/syntax/pug.vim index 94ee0dac..8f978828 100644 --- a/syntax/pug.vim +++ b/syntax/pug.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('pug', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'pug') finish endif diff --git a/syntax/puppet.vim b/syntax/puppet.vim index 1df1015d..e4ccbd4c 100644 --- a/syntax/puppet.vim +++ b/syntax/puppet.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('puppet', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'puppet') finish endif diff --git a/syntax/purescript.vim b/syntax/purescript.vim index d6ef897c..b98676df 100644 --- a/syntax/purescript.vim +++ b/syntax/purescript.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('purescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'purescript') finish endif diff --git a/syntax/pyrex.vim b/syntax/pyrex.vim index 8699c29a..b8ff3ee4 100644 --- a/syntax/pyrex.vim +++ b/syntax/pyrex.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('pyrex', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'pyrex') finish endif diff --git a/syntax/python.vim b/syntax/python.vim index 35df5989..15c030a6 100644 --- a/syntax/python.vim +++ b/syntax/python.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('python', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'python') finish endif diff --git a/syntax/qmake.vim b/syntax/qmake.vim index 6961bbc8..e4736e67 100644 --- a/syntax/qmake.vim +++ b/syntax/qmake.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('qmake', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'qmake') finish endif diff --git a/syntax/qml.vim b/syntax/qml.vim index 18b0799d..5c3c4c38 100644 --- a/syntax/qml.vim +++ b/syntax/qml.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('qml', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'qml') finish endif diff --git a/syntax/quake.vim b/syntax/quake.vim index ec467a5e..68136c0e 100644 --- a/syntax/quake.vim +++ b/syntax/quake.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('quake', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'quake') finish endif diff --git a/syntax/racket.vim b/syntax/racket.vim index 25483dea..100e7d17 100644 --- a/syntax/racket.vim +++ b/syntax/racket.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('racket', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'racket') finish endif diff --git a/syntax/radiance.vim b/syntax/radiance.vim index 1e4d0631..8635aec0 100644 --- a/syntax/radiance.vim +++ b/syntax/radiance.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('radiance', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'radiance') finish endif diff --git a/syntax/ragel.vim b/syntax/ragel.vim index 496c6ad4..82694d0e 100644 --- a/syntax/ragel.vim +++ b/syntax/ragel.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ragel', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ragel') finish endif diff --git a/syntax/raku.vim b/syntax/raku.vim index d15f0307..7a3ce951 100644 --- a/syntax/raku.vim +++ b/syntax/raku.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('raku', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'raku') finish endif diff --git a/syntax/raml.vim b/syntax/raml.vim index 95f4955c..b0c16789 100644 --- a/syntax/raml.vim +++ b/syntax/raml.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('raml', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'raml') finish endif diff --git a/syntax/ratpoison.vim b/syntax/ratpoison.vim index 8209610f..b6ea350c 100644 --- a/syntax/ratpoison.vim +++ b/syntax/ratpoison.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ratpoison', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ratpoison') finish endif diff --git a/syntax/razor.vim b/syntax/razor.vim index 5f97015a..3d064960 100644 --- a/syntax/razor.vim +++ b/syntax/razor.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('razor', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'razor') finish endif diff --git a/syntax/rc.vim b/syntax/rc.vim index c93d123f..d284143a 100644 --- a/syntax/rc.vim +++ b/syntax/rc.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('rc', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'rc') finish endif diff --git a/syntax/rcs.vim b/syntax/rcs.vim index 6657b1d8..73f6769c 100644 --- a/syntax/rcs.vim +++ b/syntax/rcs.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('rcs', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'rcs') finish endif diff --git a/syntax/readline.vim b/syntax/readline.vim index 3a98c71f..a9cfc59c 100644 --- a/syntax/readline.vim +++ b/syntax/readline.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('readline', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'readline') finish endif diff --git a/syntax/reason.vim b/syntax/reason.vim index 6d791747..cfc43bd6 100644 --- a/syntax/reason.vim +++ b/syntax/reason.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('reason', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'reason') finish endif diff --git a/syntax/rego.vim b/syntax/rego.vim index 2c3eed95..5c0cfd52 100644 --- a/syntax/rego.vim +++ b/syntax/rego.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('rego', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'rego') finish endif diff --git a/syntax/remind.vim b/syntax/remind.vim index cf40268c..74dcd791 100644 --- a/syntax/remind.vim +++ b/syntax/remind.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('remind', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'remind') finish endif diff --git a/syntax/requirements.vim b/syntax/requirements.vim index bf9b4a4f..296541d5 100644 --- a/syntax/requirements.vim +++ b/syntax/requirements.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('requirements', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'requirements') finish endif diff --git a/syntax/resolv.vim b/syntax/resolv.vim index c28ce3b6..0e492533 100644 --- a/syntax/resolv.vim +++ b/syntax/resolv.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('resolv', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'resolv') finish endif diff --git a/syntax/reva.vim b/syntax/reva.vim index 66b83f77..4af2b2f7 100644 --- a/syntax/reva.vim +++ b/syntax/reva.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('reva', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'reva') finish endif diff --git a/syntax/rexx.vim b/syntax/rexx.vim index 9573bdd0..863526b2 100644 --- a/syntax/rexx.vim +++ b/syntax/rexx.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('rexx', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'rexx') finish endif diff --git a/syntax/rhelp.vim b/syntax/rhelp.vim index 3801a371..c54ef18a 100644 --- a/syntax/rhelp.vim +++ b/syntax/rhelp.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('r-lang', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'r-lang') finish endif diff --git a/syntax/rib.vim b/syntax/rib.vim index 522e283b..5999744d 100644 --- a/syntax/rib.vim +++ b/syntax/rib.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('rib', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'rib') finish endif diff --git a/syntax/rmd.vim b/syntax/rmd.vim index b3b904f3..08194ef8 100644 --- a/syntax/rmd.vim +++ b/syntax/rmd.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('rmd', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'rmd') finish endif diff --git a/syntax/rnc.vim b/syntax/rnc.vim index 2a320837..8a09091d 100644 --- a/syntax/rnc.vim +++ b/syntax/rnc.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('rnc', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'rnc') finish endif diff --git a/syntax/rng.vim b/syntax/rng.vim index 64d93980..8783ac45 100644 --- a/syntax/rng.vim +++ b/syntax/rng.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('rng', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'rng') finish endif diff --git a/syntax/rnoweb-1.vim b/syntax/rnoweb-1.vim index bcc15f6d..767a06a3 100644 --- a/syntax/rnoweb-1.vim +++ b/syntax/rnoweb-1.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('r-lang', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'r-lang') finish endif diff --git a/syntax/rnoweb-2.vim b/syntax/rnoweb-2.vim index a3d4dc54..9c28c37a 100644 --- a/syntax/rnoweb-2.vim +++ b/syntax/rnoweb-2.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('rnoweb', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'rnoweb') finish endif diff --git a/syntax/robots.vim b/syntax/robots.vim index acf8767f..2bd69f1c 100644 --- a/syntax/robots.vim +++ b/syntax/robots.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('robots', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'robots') finish endif diff --git a/syntax/rpcgen.vim b/syntax/rpcgen.vim index b93026bb..285d1e63 100644 --- a/syntax/rpcgen.vim +++ b/syntax/rpcgen.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('rpcgen', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'rpcgen') finish endif diff --git a/syntax/rpl.vim b/syntax/rpl.vim index a37b1bde..62b469bd 100644 --- a/syntax/rpl.vim +++ b/syntax/rpl.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('rpl', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'rpl') finish endif diff --git a/syntax/rrst.vim b/syntax/rrst.vim index 76cb44cd..cd11bf58 100644 --- a/syntax/rrst.vim +++ b/syntax/rrst.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('rrst', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'rrst') finish endif diff --git a/syntax/rst.vim b/syntax/rst.vim index a0988ff8..73db9542 100644 --- a/syntax/rst.vim +++ b/syntax/rst.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('rst', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'rst') finish endif diff --git a/syntax/rtf.vim b/syntax/rtf.vim index 5fe3b6f5..c188f215 100644 --- a/syntax/rtf.vim +++ b/syntax/rtf.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('rtf', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'rtf') finish endif diff --git a/syntax/ruby.vim b/syntax/ruby.vim index 4342b896..d63cc7c5 100644 --- a/syntax/ruby.vim +++ b/syntax/ruby.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ruby', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ruby') finish endif diff --git a/syntax/rust.vim b/syntax/rust.vim index 108dd3aa..d18fb3a0 100644 --- a/syntax/rust.vim +++ b/syntax/rust.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('rust', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'rust') finish endif diff --git a/syntax/samba.vim b/syntax/samba.vim index 2fe964f7..06938b70 100644 --- a/syntax/samba.vim +++ b/syntax/samba.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('samba', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'samba') finish endif diff --git a/syntax/sas.vim b/syntax/sas.vim index f828bc56..66f03047 100644 --- a/syntax/sas.vim +++ b/syntax/sas.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('sas', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'sas') finish endif diff --git a/syntax/sass.vim b/syntax/sass.vim index 6f35d7a1..1711d641 100644 --- a/syntax/sass.vim +++ b/syntax/sass.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('sass', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'sass') finish endif diff --git a/syntax/sather.vim b/syntax/sather.vim index 0cde99c4..ada04313 100644 --- a/syntax/sather.vim +++ b/syntax/sather.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('sather', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'sather') finish endif diff --git a/syntax/sbt.vim b/syntax/sbt.vim index 81d539a7..61802fba 100644 --- a/syntax/sbt.vim +++ b/syntax/sbt.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('sbt', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'sbt') finish endif diff --git a/syntax/scala.vim b/syntax/scala.vim index fa97b867..ba22ecb1 100644 --- a/syntax/scala.vim +++ b/syntax/scala.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('scala', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'scala') finish endif diff --git a/syntax/scheme.vim b/syntax/scheme.vim index b86a766e..2fc96d71 100644 --- a/syntax/scheme.vim +++ b/syntax/scheme.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('scheme', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'scheme') finish endif diff --git a/syntax/scilab.vim b/syntax/scilab.vim index b11d57ac..128c84c9 100644 --- a/syntax/scilab.vim +++ b/syntax/scilab.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('scilab', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'scilab') finish endif diff --git a/syntax/screen.vim b/syntax/screen.vim index c4cd11ec..c4ecb137 100644 --- a/syntax/screen.vim +++ b/syntax/screen.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('screen', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'screen') finish endif diff --git a/syntax/scss.vim b/syntax/scss.vim index a4a9e0a3..3da76548 100644 --- a/syntax/scss.vim +++ b/syntax/scss.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('scss', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'scss') finish endif diff --git a/syntax/sd.vim b/syntax/sd.vim index 5cd8917c..275e8898 100644 --- a/syntax/sd.vim +++ b/syntax/sd.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('sd', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'sd') finish endif diff --git a/syntax/sdc.vim b/syntax/sdc.vim index 79314578..f310957d 100644 --- a/syntax/sdc.vim +++ b/syntax/sdc.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('sdc', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'sdc') finish endif diff --git a/syntax/sdl.vim b/syntax/sdl.vim index 1551ccc5..c1892ac7 100644 --- a/syntax/sdl.vim +++ b/syntax/sdl.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('sdl', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'sdl') finish endif diff --git a/syntax/sed.vim b/syntax/sed.vim index 8d2349da..ad9cc1e3 100644 --- a/syntax/sed.vim +++ b/syntax/sed.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('sed', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'sed') finish endif diff --git a/syntax/sensors.vim b/syntax/sensors.vim index c2411eed..37ffbd57 100644 --- a/syntax/sensors.vim +++ b/syntax/sensors.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('sensors', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'sensors') finish endif diff --git a/syntax/services.vim b/syntax/services.vim index 2b5b6f24..3315a1b7 100644 --- a/syntax/services.vim +++ b/syntax/services.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('services', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'services') finish endif diff --git a/syntax/setserial.vim b/syntax/setserial.vim index ac7f9d70..d1825b3f 100644 --- a/syntax/setserial.vim +++ b/syntax/setserial.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('setserial', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'setserial') finish endif diff --git a/syntax/sexplib.vim b/syntax/sexplib.vim index 2e338203..1d6f27fa 100644 --- a/syntax/sexplib.vim +++ b/syntax/sexplib.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('ocaml', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'ocaml') finish endif diff --git a/syntax/sh.vim b/syntax/sh.vim index fc5810af..11d5f394 100644 --- a/syntax/sh.vim +++ b/syntax/sh.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('sh', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'sh') finish endif diff --git a/syntax/sieve.vim b/syntax/sieve.vim index 1374df78..29b4a097 100644 --- a/syntax/sieve.vim +++ b/syntax/sieve.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('sieve', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'sieve') finish endif diff --git a/syntax/sil.vim b/syntax/sil.vim index 06bcda91..c6c63d05 100644 --- a/syntax/sil.vim +++ b/syntax/sil.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('sil', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'sil') finish endif diff --git a/syntax/simula.vim b/syntax/simula.vim index f9fb68e7..803567e3 100644 --- a/syntax/simula.vim +++ b/syntax/simula.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('simula', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'simula') finish endif diff --git a/syntax/sinda.vim b/syntax/sinda.vim index 7d2a6cad..648c1666 100644 --- a/syntax/sinda.vim +++ b/syntax/sinda.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('sinda', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'sinda') finish endif diff --git a/syntax/sisu.vim b/syntax/sisu.vim index a2aeeb3c..723b298e 100644 --- a/syntax/sisu.vim +++ b/syntax/sisu.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('sisu', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'sisu') finish endif diff --git a/syntax/skill.vim b/syntax/skill.vim index 5304a8dd..5c4c9df2 100644 --- a/syntax/skill.vim +++ b/syntax/skill.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('skill', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'skill') finish endif diff --git a/syntax/slang.vim b/syntax/slang.vim index 49e43635..d65c8608 100644 --- a/syntax/slang.vim +++ b/syntax/slang.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('slang', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'slang') finish endif diff --git a/syntax/slice.vim b/syntax/slice.vim index a2264819..4142f3b8 100644 --- a/syntax/slice.vim +++ b/syntax/slice.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('slice', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'slice') finish endif diff --git a/syntax/slim.vim b/syntax/slim.vim index de32f92f..d4ae6367 100644 --- a/syntax/slim.vim +++ b/syntax/slim.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('slim', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'slim') finish endif diff --git a/syntax/slime.vim b/syntax/slime.vim index e00fd549..652454db 100644 --- a/syntax/slime.vim +++ b/syntax/slime.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('slime', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'slime') finish endif diff --git a/syntax/slpconf.vim b/syntax/slpconf.vim index 20c4f639..a617ddb3 100644 --- a/syntax/slpconf.vim +++ b/syntax/slpconf.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('slpconf', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'slpconf') finish endif diff --git a/syntax/slpreg.vim b/syntax/slpreg.vim index 0c7f07a9..7e2f2867 100644 --- a/syntax/slpreg.vim +++ b/syntax/slpreg.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('slpreg', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'slpreg') finish endif diff --git a/syntax/slpspi.vim b/syntax/slpspi.vim index 83034fec..c58f6c91 100644 --- a/syntax/slpspi.vim +++ b/syntax/slpspi.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('slpspi', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'slpspi') finish endif diff --git a/syntax/slrnrc.vim b/syntax/slrnrc.vim index 1683be97..9c455b9a 100644 --- a/syntax/slrnrc.vim +++ b/syntax/slrnrc.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('slrnrc', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'slrnrc') finish endif diff --git a/syntax/slrnsc.vim b/syntax/slrnsc.vim index 6cc62719..444580d3 100644 --- a/syntax/slrnsc.vim +++ b/syntax/slrnsc.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('slrnsc', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'slrnsc') finish endif diff --git a/syntax/sm.vim b/syntax/sm.vim index a4b7379f..1dd950be 100644 --- a/syntax/sm.vim +++ b/syntax/sm.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('sm', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'sm') finish endif diff --git a/syntax/smarty.vim b/syntax/smarty.vim index 30d82d06..eae2ade3 100644 --- a/syntax/smarty.vim +++ b/syntax/smarty.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('smarty', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'smarty') finish endif diff --git a/syntax/smcl.vim b/syntax/smcl.vim index 50b657d4..afe342b6 100644 --- a/syntax/smcl.vim +++ b/syntax/smcl.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('smcl', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'smcl') finish endif diff --git a/syntax/smhl.vim b/syntax/smhl.vim index 7ab328a5..a46db908 100644 --- a/syntax/smhl.vim +++ b/syntax/smhl.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/syntax/smith.vim b/syntax/smith.vim index 4dd4e513..8b4449d4 100644 --- a/syntax/smith.vim +++ b/syntax/smith.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('smith', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'smith') finish endif diff --git a/syntax/sml.vim b/syntax/sml.vim index 5788d758..3656b2d3 100644 --- a/syntax/sml.vim +++ b/syntax/sml.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('sml', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'sml') finish endif diff --git a/syntax/smt2.vim b/syntax/smt2.vim index b70c95f4..8ee8c2ac 100644 --- a/syntax/smt2.vim +++ b/syntax/smt2.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('smt2', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'smt2') finish endif diff --git a/syntax/snobol4.vim b/syntax/snobol4.vim index d100fb4a..e5ce00eb 100644 --- a/syntax/snobol4.vim +++ b/syntax/snobol4.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('snobol4', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'snobol4') finish endif diff --git a/syntax/solidity.vim b/syntax/solidity.vim index 3bde3b8a..a1bca69e 100644 --- a/syntax/solidity.vim +++ b/syntax/solidity.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('solidity', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'solidity') finish endif diff --git a/syntax/spec.vim b/syntax/spec.vim index 3a6772da..c7ccc4d2 100644 --- a/syntax/spec.vim +++ b/syntax/spec.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('spec', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'spec') finish endif diff --git a/syntax/spice.vim b/syntax/spice.vim index becd3de9..44e5a330 100644 --- a/syntax/spice.vim +++ b/syntax/spice.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('spice', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'spice') finish endif diff --git a/syntax/spup.vim b/syntax/spup.vim index b4f16b2f..6112ac17 100644 --- a/syntax/spup.vim +++ b/syntax/spup.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('spup', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'spup') finish endif diff --git a/syntax/spyce.vim b/syntax/spyce.vim index f5f5e092..297cac6d 100644 --- a/syntax/spyce.vim +++ b/syntax/spyce.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('spyce', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'spyce') finish endif diff --git a/syntax/sql.vim b/syntax/sql.vim index 6ec02f7f..15c09ff2 100644 --- a/syntax/sql.vim +++ b/syntax/sql.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('sql', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'sql') finish endif diff --git a/syntax/sqlj.vim b/syntax/sqlj.vim index bf3c0b74..e4010e2c 100644 --- a/syntax/sqlj.vim +++ b/syntax/sqlj.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('sqlj', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'sqlj') finish endif diff --git a/syntax/sqloracle.vim b/syntax/sqloracle.vim index f1fd838f..921f0236 100644 --- a/syntax/sqloracle.vim +++ b/syntax/sqloracle.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('sql', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'sql') finish endif diff --git a/syntax/sqr.vim b/syntax/sqr.vim index 2ac1dbfb..cb2a901a 100644 --- a/syntax/sqr.vim +++ b/syntax/sqr.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('sqr', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'sqr') finish endif diff --git a/syntax/squid.vim b/syntax/squid.vim index f95957ba..2e10ac7d 100644 --- a/syntax/squid.vim +++ b/syntax/squid.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('squid', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'squid') finish endif diff --git a/syntax/srec.vim b/syntax/srec.vim index 20e2604d..02c29436 100644 --- a/syntax/srec.vim +++ b/syntax/srec.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('srec', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'srec') finish endif diff --git a/syntax/sshconfig.vim b/syntax/sshconfig.vim index bebb7bb6..7c9b1680 100644 --- a/syntax/sshconfig.vim +++ b/syntax/sshconfig.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('sshconfig', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'sshconfig') finish endif diff --git a/syntax/sshdconfig.vim b/syntax/sshdconfig.vim index ef25dab0..b47ba971 100644 --- a/syntax/sshdconfig.vim +++ b/syntax/sshdconfig.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('sshdconfig', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'sshdconfig') finish endif diff --git a/syntax/st.vim b/syntax/st.vim index 865af7d4..1a08c203 100644 --- a/syntax/st.vim +++ b/syntax/st.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('st', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'st') finish endif diff --git a/syntax/stata.vim b/syntax/stata.vim index 27c7afcd..12faf80e 100644 --- a/syntax/stata.vim +++ b/syntax/stata.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('stata', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'stata') finish endif diff --git a/syntax/stp.vim b/syntax/stp.vim index f43740b9..787590b5 100644 --- a/syntax/stp.vim +++ b/syntax/stp.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('stp', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'stp') finish endif diff --git a/syntax/stylus.vim b/syntax/stylus.vim index bf826921..fdd4c371 100644 --- a/syntax/stylus.vim +++ b/syntax/stylus.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('stylus', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'stylus') finish endif diff --git a/syntax/sudoers.vim b/syntax/sudoers.vim index 053dc1f9..d2ae719a 100644 --- a/syntax/sudoers.vim +++ b/syntax/sudoers.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('sudoers', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'sudoers') finish endif diff --git a/syntax/svelte.vim b/syntax/svelte.vim index d50f16c1..84856943 100644 --- a/syntax/svelte.vim +++ b/syntax/svelte.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('svelte', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'svelte') finish endif diff --git a/syntax/svg.vim b/syntax/svg.vim index 17302f79..7746da37 100644 --- a/syntax/svg.vim +++ b/syntax/svg.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('svg', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'svg') finish endif diff --git a/syntax/svn.vim b/syntax/svn.vim index 29c3b99e..3ff758eb 100644 --- a/syntax/svn.vim +++ b/syntax/svn.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('svn', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'svn') finish endif diff --git a/syntax/swift.vim b/syntax/swift.vim index b4fa59e9..102eedb6 100644 --- a/syntax/swift.vim +++ b/syntax/swift.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('swift', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'swift') finish endif diff --git a/syntax/swiftgyb.vim b/syntax/swiftgyb.vim index f647c676..d4d27da2 100644 --- a/syntax/swiftgyb.vim +++ b/syntax/swiftgyb.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('swiftgyb', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'swiftgyb') finish endif diff --git a/syntax/sxhkdrc.vim b/syntax/sxhkdrc.vim index f0c28fad..e4950e6c 100644 --- a/syntax/sxhkdrc.vim +++ b/syntax/sxhkdrc.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('sxhkd', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'sxhkd') finish endif diff --git a/syntax/sysctl.vim b/syntax/sysctl.vim index cd2e288a..c67ca83a 100644 --- a/syntax/sysctl.vim +++ b/syntax/sysctl.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('sysctl', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'sysctl') finish endif diff --git a/syntax/systemd.vim b/syntax/systemd.vim index 035580e3..d26fdf1d 100644 --- a/syntax/systemd.vim +++ b/syntax/systemd.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('systemd', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'systemd') finish endif diff --git a/syntax/systemverilog.vim b/syntax/systemverilog.vim index 8e79ae47..5be897bd 100644 --- a/syntax/systemverilog.vim +++ b/syntax/systemverilog.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('systemverilog', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'systemverilog') finish endif diff --git a/syntax/tablegen.vim b/syntax/tablegen.vim index 6fda1acf..6701d9a2 100644 --- a/syntax/tablegen.vim +++ b/syntax/tablegen.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('llvm', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'llvm') finish endif diff --git a/syntax/tads.vim b/syntax/tads.vim index 68e35de8..5267823b 100644 --- a/syntax/tads.vim +++ b/syntax/tads.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('tads', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'tads') finish endif diff --git a/syntax/tags.vim b/syntax/tags.vim index e609bc4b..19ca19b4 100644 --- a/syntax/tags.vim +++ b/syntax/tags.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('tags', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'tags') finish endif diff --git a/syntax/tak.vim b/syntax/tak.vim index 1c1d259b..43512742 100644 --- a/syntax/tak.vim +++ b/syntax/tak.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('tak', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'tak') finish endif diff --git a/syntax/tap.vim b/syntax/tap.vim index 404b4370..2ff30f83 100644 --- a/syntax/tap.vim +++ b/syntax/tap.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('perl', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'perl') finish endif diff --git a/syntax/taskdata.vim b/syntax/taskdata.vim index 30a0e013..6ef63d44 100644 --- a/syntax/taskdata.vim +++ b/syntax/taskdata.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('taskdata', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'taskdata') finish endif diff --git a/syntax/taskedit.vim b/syntax/taskedit.vim index 54746438..fcf1ad44 100644 --- a/syntax/taskedit.vim +++ b/syntax/taskedit.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('taskedit', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'taskedit') finish endif diff --git a/syntax/tcl.vim b/syntax/tcl.vim index 2066a1f9..a7751ef8 100644 --- a/syntax/tcl.vim +++ b/syntax/tcl.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('tcl', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'tcl') finish endif diff --git a/syntax/template.vim b/syntax/template.vim index 02c7fd7d..ae8ddeed 100644 --- a/syntax/template.vim +++ b/syntax/template.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('template', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'template') finish endif diff --git a/syntax/teraterm.vim b/syntax/teraterm.vim index 195e933e..ed458f8e 100644 --- a/syntax/teraterm.vim +++ b/syntax/teraterm.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('teraterm', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'teraterm') finish endif diff --git a/syntax/terminfo.vim b/syntax/terminfo.vim index fe90c4b0..e9056aff 100644 --- a/syntax/terminfo.vim +++ b/syntax/terminfo.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('terminfo', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'terminfo') finish endif diff --git a/syntax/terraform.vim b/syntax/terraform.vim index 2c533caa..786a3bba 100644 --- a/syntax/terraform.vim +++ b/syntax/terraform.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('terraform', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'terraform') finish endif diff --git a/syntax/tex.vim b/syntax/tex.vim index a1ecf32f..f65d554a 100644 --- a/syntax/tex.vim +++ b/syntax/tex.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('tex', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'tex') finish endif diff --git a/syntax/texinfo.vim b/syntax/texinfo.vim index d863d6fe..16a878ad 100644 --- a/syntax/texinfo.vim +++ b/syntax/texinfo.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('texinfo', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'texinfo') finish endif diff --git a/syntax/texmf.vim b/syntax/texmf.vim index 48445470..3ecd4a99 100644 --- a/syntax/texmf.vim +++ b/syntax/texmf.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('texmf', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'texmf') finish endif diff --git a/syntax/textile.vim b/syntax/textile.vim index 6c056026..1bdce409 100644 --- a/syntax/textile.vim +++ b/syntax/textile.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('textile', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'textile') finish endif diff --git a/syntax/tf.vim b/syntax/tf.vim index d69fdf6d..1202c51a 100644 --- a/syntax/tf.vim +++ b/syntax/tf.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('tf', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'tf') finish endif diff --git a/syntax/thrift.vim b/syntax/thrift.vim index c842878f..7a0dd5dc 100644 --- a/syntax/thrift.vim +++ b/syntax/thrift.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('thrift', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'thrift') finish endif diff --git a/syntax/tidy.vim b/syntax/tidy.vim index a10aeb94..f61d5aa0 100644 --- a/syntax/tidy.vim +++ b/syntax/tidy.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('tidy', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'tidy') finish endif diff --git a/syntax/tilde.vim b/syntax/tilde.vim index 8a25493b..2985ce1f 100644 --- a/syntax/tilde.vim +++ b/syntax/tilde.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('tilde', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'tilde') finish endif diff --git a/syntax/tli.vim b/syntax/tli.vim index e5ce202d..7360e163 100644 --- a/syntax/tli.vim +++ b/syntax/tli.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('tli', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'tli') finish endif diff --git a/syntax/tmux.vim b/syntax/tmux.vim index fbd7099d..4051be63 100644 --- a/syntax/tmux.vim +++ b/syntax/tmux.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('tmux', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'tmux') finish endif diff --git a/syntax/toml.vim b/syntax/toml.vim index 5428296f..1cf2abc9 100644 --- a/syntax/toml.vim +++ b/syntax/toml.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('toml', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'toml') finish endif diff --git a/syntax/tpp.vim b/syntax/tpp.vim index f0dc9902..43278ae1 100644 --- a/syntax/tpp.vim +++ b/syntax/tpp.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('tpp', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'tpp') finish endif diff --git a/syntax/tptp.vim b/syntax/tptp.vim index 089c37df..414789a6 100644 --- a/syntax/tptp.vim +++ b/syntax/tptp.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('tptp', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'tptp') finish endif diff --git a/syntax/trasys.vim b/syntax/trasys.vim index ae48e83b..5cc2b8e4 100644 --- a/syntax/trasys.vim +++ b/syntax/trasys.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('trasys', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'trasys') finish endif diff --git a/syntax/treetop.vim b/syntax/treetop.vim index aceec282..461cb216 100644 --- a/syntax/treetop.vim +++ b/syntax/treetop.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('treetop', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'treetop') finish endif diff --git a/syntax/trustees.vim b/syntax/trustees.vim index 1e4826b1..9ae435cd 100644 --- a/syntax/trustees.vim +++ b/syntax/trustees.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('trustees', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'trustees') finish endif diff --git a/syntax/tsalt.vim b/syntax/tsalt.vim index 62a0cc3b..83b87878 100644 --- a/syntax/tsalt.vim +++ b/syntax/tsalt.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('tsalt', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'tsalt') finish endif diff --git a/syntax/tsscl.vim b/syntax/tsscl.vim index 37a166dc..0468a010 100644 --- a/syntax/tsscl.vim +++ b/syntax/tsscl.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('tsscl', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'tsscl') finish endif diff --git a/syntax/tssgm.vim b/syntax/tssgm.vim index 1d11bfdc..e7aa3928 100644 --- a/syntax/tssgm.vim +++ b/syntax/tssgm.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('tssgm', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'tssgm') finish endif diff --git a/syntax/tssop.vim b/syntax/tssop.vim index 7ad29244..ed3a4750 100644 --- a/syntax/tssop.vim +++ b/syntax/tssop.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('tssop', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'tssop') finish endif diff --git a/syntax/tt2.vim b/syntax/tt2.vim index c5a0dcda..30cf72b2 100644 --- a/syntax/tt2.vim +++ b/syntax/tt2.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('perl', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'perl') finish endif diff --git a/syntax/tt2html.vim b/syntax/tt2html.vim index 28c2478e..b9541052 100644 --- a/syntax/tt2html.vim +++ b/syntax/tt2html.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('perl', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'perl') finish endif diff --git a/syntax/tt2js.vim b/syntax/tt2js.vim index d85d72d8..af01db8d 100644 --- a/syntax/tt2js.vim +++ b/syntax/tt2js.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('perl', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'perl') finish endif diff --git a/syntax/twig.vim b/syntax/twig.vim index 13b44f11..76905e74 100644 --- a/syntax/twig.vim +++ b/syntax/twig.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('twig', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'twig') finish endif diff --git a/syntax/typescript.vim b/syntax/typescript.vim index e8f98a13..76f8b21f 100644 --- a/syntax/typescript.vim +++ b/syntax/typescript.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/syntax/typescriptreact.vim b/syntax/typescriptreact.vim index c8b2af3f..96dd5e07 100644 --- a/syntax/typescriptreact.vim +++ b/syntax/typescriptreact.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/syntax/uc.vim b/syntax/uc.vim index 068553b2..409e197b 100644 --- a/syntax/uc.vim +++ b/syntax/uc.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('uc', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'uc') finish endif diff --git a/syntax/udevconf.vim b/syntax/udevconf.vim index 5d8b5fca..80bb6643 100644 --- a/syntax/udevconf.vim +++ b/syntax/udevconf.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('udevconf', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'udevconf') finish endif diff --git a/syntax/udevperm.vim b/syntax/udevperm.vim index 1725d9f9..452def81 100644 --- a/syntax/udevperm.vim +++ b/syntax/udevperm.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('udevperm', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'udevperm') finish endif diff --git a/syntax/uil.vim b/syntax/uil.vim index a6ddf8c4..38ce3104 100644 --- a/syntax/uil.vim +++ b/syntax/uil.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('uil', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'uil') finish endif diff --git a/syntax/unison.vim b/syntax/unison.vim index f069b99b..d11cac2c 100644 --- a/syntax/unison.vim +++ b/syntax/unison.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('unison', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'unison') finish endif diff --git a/syntax/updatedb.vim b/syntax/updatedb.vim index 02233978..1507acad 100644 --- a/syntax/updatedb.vim +++ b/syntax/updatedb.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('updatedb', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'updatedb') finish endif diff --git a/syntax/upstart.vim b/syntax/upstart.vim index 4df94c19..29d716ad 100644 --- a/syntax/upstart.vim +++ b/syntax/upstart.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('upstart', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'upstart') finish endif diff --git a/syntax/upstreamdat.vim b/syntax/upstreamdat.vim index 2239f33d..5d2ad737 100644 --- a/syntax/upstreamdat.vim +++ b/syntax/upstreamdat.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('upstreamdat', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'upstreamdat') finish endif diff --git a/syntax/upstreaminstalllog.vim b/syntax/upstreaminstalllog.vim index b6703103..1b7d2888 100644 --- a/syntax/upstreaminstalllog.vim +++ b/syntax/upstreaminstalllog.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('upstreaminstalllog', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'upstreaminstalllog') finish endif diff --git a/syntax/upstreamlog.vim b/syntax/upstreamlog.vim index 8a885654..99dcf4e6 100644 --- a/syntax/upstreamlog.vim +++ b/syntax/upstreamlog.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('upstreamlog', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'upstreamlog') finish endif diff --git a/syntax/usserverlog.vim b/syntax/usserverlog.vim index 61b6a56a..c6fca68a 100644 --- a/syntax/usserverlog.vim +++ b/syntax/usserverlog.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('usserverlog', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'usserverlog') finish endif diff --git a/syntax/usw2kagtlog.vim b/syntax/usw2kagtlog.vim index f748b037..c8337836 100644 --- a/syntax/usw2kagtlog.vim +++ b/syntax/usw2kagtlog.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('usw2kagtlog', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'usw2kagtlog') finish endif diff --git a/syntax/vala.vim b/syntax/vala.vim index 36f035c7..71a0e677 100644 --- a/syntax/vala.vim +++ b/syntax/vala.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('vala', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'vala') finish endif diff --git a/syntax/vb.vim b/syntax/vb.vim index 8edd7882..fef5186e 100644 --- a/syntax/vb.vim +++ b/syntax/vb.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('visual-basic', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'visual-basic') finish endif diff --git a/syntax/vbnet.vim b/syntax/vbnet.vim index cf94d7b5..4ed37c33 100644 --- a/syntax/vbnet.vim +++ b/syntax/vbnet.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('vbnet', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'vbnet') finish endif diff --git a/syntax/vcl.vim b/syntax/vcl.vim index 33aab04a..6d0c358b 100644 --- a/syntax/vcl.vim +++ b/syntax/vcl.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('vcl', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'vcl') finish endif diff --git a/syntax/velocity.vim b/syntax/velocity.vim index dffcd394..73250c12 100644 --- a/syntax/velocity.vim +++ b/syntax/velocity.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('velocity', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'velocity') finish endif diff --git a/syntax/vera.vim b/syntax/vera.vim index 45a07df1..3d2ab256 100644 --- a/syntax/vera.vim +++ b/syntax/vera.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('vera', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'vera') finish endif diff --git a/syntax/verilog.vim b/syntax/verilog.vim index 3898636f..f9171831 100644 --- a/syntax/verilog.vim +++ b/syntax/verilog.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('verilog', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'verilog') finish endif diff --git a/syntax/verilogams.vim b/syntax/verilogams.vim index a77a3dcd..cd5a4a7f 100644 --- a/syntax/verilogams.vim +++ b/syntax/verilogams.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('verilogams', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'verilogams') finish endif diff --git a/syntax/vgrindefs.vim b/syntax/vgrindefs.vim index 085f51ec..6cd64e02 100644 --- a/syntax/vgrindefs.vim +++ b/syntax/vgrindefs.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('vgrindefs', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'vgrindefs') finish endif diff --git a/syntax/vhdl.vim b/syntax/vhdl.vim index 4f4a19ec..b38bb3b6 100644 --- a/syntax/vhdl.vim +++ b/syntax/vhdl.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('vhdl', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'vhdl') finish endif diff --git a/syntax/vimgo.vim b/syntax/vimgo.vim index df82a709..6c54462a 100644 --- a/syntax/vimgo.vim +++ b/syntax/vimgo.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('go', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'go') finish endif diff --git a/syntax/viminfo.vim b/syntax/viminfo.vim index 5d5c5454..0df29fd4 100644 --- a/syntax/viminfo.vim +++ b/syntax/viminfo.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('viminfo', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'viminfo') finish endif diff --git a/syntax/vlang.vim b/syntax/vlang.vim index 5c6e47fd..4592a80c 100644 --- a/syntax/vlang.vim +++ b/syntax/vlang.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('v', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'v') finish endif diff --git a/syntax/vmasm.vim b/syntax/vmasm.vim index 486a3327..ee6bf5a8 100644 --- a/syntax/vmasm.vim +++ b/syntax/vmasm.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('vmasm', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'vmasm') finish endif diff --git a/syntax/voscm.vim b/syntax/voscm.vim index dbc11b38..9cb01073 100644 --- a/syntax/voscm.vim +++ b/syntax/voscm.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('voscm', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'voscm') finish endif diff --git a/syntax/vrml.vim b/syntax/vrml.vim index 4447cf78..a1c461d6 100644 --- a/syntax/vrml.vim +++ b/syntax/vrml.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('vrml', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'vrml') finish endif diff --git a/syntax/vroom.vim b/syntax/vroom.vim index ea22628c..2036b6ab 100644 --- a/syntax/vroom.vim +++ b/syntax/vroom.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('vroom', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'vroom') finish endif diff --git a/syntax/vue.vim b/syntax/vue.vim index 126d9c82..ad4d6517 100644 --- a/syntax/vue.vim +++ b/syntax/vue.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('vue', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'vue') finish endif diff --git a/syntax/wast.vim b/syntax/wast.vim index ea2c6490..70e70b38 100644 --- a/syntax/wast.vim +++ b/syntax/wast.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('wast', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'wast') finish endif diff --git a/syntax/webmacro.vim b/syntax/webmacro.vim index 0120c18a..4cda57bc 100644 --- a/syntax/webmacro.vim +++ b/syntax/webmacro.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('webmacro', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'webmacro') finish endif diff --git a/syntax/wget.vim b/syntax/wget.vim index b5c41e92..268f8a6b 100644 --- a/syntax/wget.vim +++ b/syntax/wget.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('wget', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'wget') finish endif diff --git a/syntax/winbatch.vim b/syntax/winbatch.vim index 5b7eff68..ae8e9982 100644 --- a/syntax/winbatch.vim +++ b/syntax/winbatch.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('winbatch', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'winbatch') finish endif diff --git a/syntax/wml.vim b/syntax/wml.vim index 462fefe5..a3a980a7 100644 --- a/syntax/wml.vim +++ b/syntax/wml.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('wml', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'wml') finish endif diff --git a/syntax/wsh.vim b/syntax/wsh.vim index 73243067..eebdd822 100644 --- a/syntax/wsh.vim +++ b/syntax/wsh.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('wsh', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'wsh') finish endif diff --git a/syntax/wsml.vim b/syntax/wsml.vim index e141292d..f34cc910 100644 --- a/syntax/wsml.vim +++ b/syntax/wsml.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('wsml', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'wsml') finish endif diff --git a/syntax/wvdial.vim b/syntax/wvdial.vim index eff51cb8..7f0884fa 100644 --- a/syntax/wvdial.vim +++ b/syntax/wvdial.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('wvdial', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'wvdial') finish endif diff --git a/syntax/xdc.vim b/syntax/xdc.vim index b83415d3..d4b93cc9 100644 --- a/syntax/xdc.vim +++ b/syntax/xdc.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('xdc', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'xdc') finish endif diff --git a/syntax/xdefaults.vim b/syntax/xdefaults.vim index 7bfedc24..16bf2db3 100644 --- a/syntax/xdefaults.vim +++ b/syntax/xdefaults.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('xdefaults', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'xdefaults') finish endif diff --git a/syntax/xf86conf.vim b/syntax/xf86conf.vim index 7f3e3847..ab629510 100644 --- a/syntax/xf86conf.vim +++ b/syntax/xf86conf.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('xf86conf', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'xf86conf') finish endif diff --git a/syntax/xhtml.vim b/syntax/xhtml.vim index 72fc71df..3df25ee2 100644 --- a/syntax/xhtml.vim +++ b/syntax/xhtml.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('xhtml', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'xhtml') finish endif diff --git a/syntax/xinetd.vim b/syntax/xinetd.vim index eb5a7127..a1b180ae 100644 --- a/syntax/xinetd.vim +++ b/syntax/xinetd.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('xinetd', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'xinetd') finish endif diff --git a/syntax/xmath.vim b/syntax/xmath.vim index e4a55d26..f319d9bb 100644 --- a/syntax/xmath.vim +++ b/syntax/xmath.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('xmath', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'xmath') finish endif diff --git a/syntax/xml.vim b/syntax/xml.vim index e1244bfb..21e469fe 100644 --- a/syntax/xml.vim +++ b/syntax/xml.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('xml', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'xml') finish endif diff --git a/syntax/xmodmap.vim b/syntax/xmodmap.vim index 81c42c5d..2d4ebf95 100644 --- a/syntax/xmodmap.vim +++ b/syntax/xmodmap.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('xmodmap', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'xmodmap') finish endif diff --git a/syntax/xpm.vim b/syntax/xpm.vim index d1a93f22..5b0ebb18 100644 --- a/syntax/xpm.vim +++ b/syntax/xpm.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('xpm', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'xpm') finish endif diff --git a/syntax/xpm2.vim b/syntax/xpm2.vim index 48ec5b56..94dc8b90 100644 --- a/syntax/xpm2.vim +++ b/syntax/xpm2.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('xpm2', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'xpm2') finish endif diff --git a/syntax/xquery.vim b/syntax/xquery.vim index 58039696..e7bfa52d 100644 --- a/syntax/xquery.vim +++ b/syntax/xquery.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('xquery', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'xquery') finish endif diff --git a/syntax/xs.vim b/syntax/xs.vim index 9b7b2717..4c7b6329 100644 --- a/syntax/xs.vim +++ b/syntax/xs.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('perl', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'perl') finish endif diff --git a/syntax/xsd.vim b/syntax/xsd.vim index 8f3a47cb..0bd9e64c 100644 --- a/syntax/xsd.vim +++ b/syntax/xsd.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('xsd', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'xsd') finish endif diff --git a/syntax/xsl.vim b/syntax/xsl.vim index 8ca73411..112c041c 100644 --- a/syntax/xsl.vim +++ b/syntax/xsl.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('xsl', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'xsl') finish endif diff --git a/syntax/xslt.vim b/syntax/xslt.vim index ad0f37bb..9a884ca9 100644 --- a/syntax/xslt.vim +++ b/syntax/xslt.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('xslt', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'xslt') finish endif diff --git a/syntax/yacc.vim b/syntax/yacc.vim index 3dd9742a..5bfd6611 100644 --- a/syntax/yacc.vim +++ b/syntax/yacc.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('yacc', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'yacc') finish endif diff --git a/syntax/yaml.vim b/syntax/yaml.vim index 8b82460c..fa243b60 100644 --- a/syntax/yaml.vim +++ b/syntax/yaml.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('yaml', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'yaml') finish endif diff --git a/syntax/yats.vim b/syntax/yats.vim index f790a3fb..255f133a 100644 --- a/syntax/yats.vim +++ b/syntax/yats.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/syntax/yats/css.vim b/syntax/yats/css.vim index af9baf69..2baf78d3 100644 --- a/syntax/yats/css.vim +++ b/syntax/yats/css.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/syntax/yats/dom-document.vim b/syntax/yats/dom-document.vim index 0c506288..d8582220 100644 --- a/syntax/yats/dom-document.vim +++ b/syntax/yats/dom-document.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/syntax/yats/dom-elem.vim b/syntax/yats/dom-elem.vim index 438d0fd5..916a4932 100644 --- a/syntax/yats/dom-elem.vim +++ b/syntax/yats/dom-elem.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/syntax/yats/dom-event.vim b/syntax/yats/dom-event.vim index 15a9a79d..ce8d1f5a 100644 --- a/syntax/yats/dom-event.vim +++ b/syntax/yats/dom-event.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/syntax/yats/dom-form.vim b/syntax/yats/dom-form.vim index 5ff6e88f..4e6cc849 100644 --- a/syntax/yats/dom-form.vim +++ b/syntax/yats/dom-form.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/syntax/yats/dom-node.vim b/syntax/yats/dom-node.vim index c6cd3283..d6675be2 100644 --- a/syntax/yats/dom-node.vim +++ b/syntax/yats/dom-node.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/syntax/yats/dom-storage.vim b/syntax/yats/dom-storage.vim index 19719e5a..8067089d 100644 --- a/syntax/yats/dom-storage.vim +++ b/syntax/yats/dom-storage.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/syntax/yats/ecma-402.vim b/syntax/yats/ecma-402.vim index fca87fdf..b0321c83 100644 --- a/syntax/yats/ecma-402.vim +++ b/syntax/yats/ecma-402.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/syntax/yats/es6-array.vim b/syntax/yats/es6-array.vim index 9ea46a11..6f300ac5 100644 --- a/syntax/yats/es6-array.vim +++ b/syntax/yats/es6-array.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/syntax/yats/es6-date.vim b/syntax/yats/es6-date.vim index 25403828..2bfcc54c 100644 --- a/syntax/yats/es6-date.vim +++ b/syntax/yats/es6-date.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/syntax/yats/es6-function.vim b/syntax/yats/es6-function.vim index 0f39d0be..cb991a93 100644 --- a/syntax/yats/es6-function.vim +++ b/syntax/yats/es6-function.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/syntax/yats/es6-json.vim b/syntax/yats/es6-json.vim index f1d1d488..622b941a 100644 --- a/syntax/yats/es6-json.vim +++ b/syntax/yats/es6-json.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/syntax/yats/es6-map.vim b/syntax/yats/es6-map.vim index 97e2558d..dbbc651c 100644 --- a/syntax/yats/es6-map.vim +++ b/syntax/yats/es6-map.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/syntax/yats/es6-math.vim b/syntax/yats/es6-math.vim index 0490f22e..0e950556 100644 --- a/syntax/yats/es6-math.vim +++ b/syntax/yats/es6-math.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/syntax/yats/es6-number.vim b/syntax/yats/es6-number.vim index 1fb37cb6..810d58f2 100644 --- a/syntax/yats/es6-number.vim +++ b/syntax/yats/es6-number.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/syntax/yats/es6-object.vim b/syntax/yats/es6-object.vim index 750571d7..6a8e9354 100644 --- a/syntax/yats/es6-object.vim +++ b/syntax/yats/es6-object.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/syntax/yats/es6-promise.vim b/syntax/yats/es6-promise.vim index 5cb97747..bcbbf91f 100644 --- a/syntax/yats/es6-promise.vim +++ b/syntax/yats/es6-promise.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/syntax/yats/es6-proxy.vim b/syntax/yats/es6-proxy.vim index 6bfd693c..55aaeb7b 100644 --- a/syntax/yats/es6-proxy.vim +++ b/syntax/yats/es6-proxy.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/syntax/yats/es6-reflect.vim b/syntax/yats/es6-reflect.vim index 9bc7c6be..ff945554 100644 --- a/syntax/yats/es6-reflect.vim +++ b/syntax/yats/es6-reflect.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/syntax/yats/es6-regexp.vim b/syntax/yats/es6-regexp.vim index dfa4932b..c55bc532 100644 --- a/syntax/yats/es6-regexp.vim +++ b/syntax/yats/es6-regexp.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/syntax/yats/es6-set.vim b/syntax/yats/es6-set.vim index c6ce4695..d35e2634 100644 --- a/syntax/yats/es6-set.vim +++ b/syntax/yats/es6-set.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/syntax/yats/es6-string.vim b/syntax/yats/es6-string.vim index 99ce6c77..0369bb1c 100644 --- a/syntax/yats/es6-string.vim +++ b/syntax/yats/es6-string.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/syntax/yats/es6-symbol.vim b/syntax/yats/es6-symbol.vim index 5935f5ef..7af3b5d3 100644 --- a/syntax/yats/es6-symbol.vim +++ b/syntax/yats/es6-symbol.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/syntax/yats/event.vim b/syntax/yats/event.vim index 46c54913..da468995 100644 --- a/syntax/yats/event.vim +++ b/syntax/yats/event.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/syntax/yats/node.vim b/syntax/yats/node.vim index 375f7dbd..9cae877a 100644 --- a/syntax/yats/node.vim +++ b/syntax/yats/node.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/syntax/yats/test.vim b/syntax/yats/test.vim index bb4a60cb..19b9fd67 100644 --- a/syntax/yats/test.vim +++ b/syntax/yats/test.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/syntax/yats/typescript.vim b/syntax/yats/typescript.vim index 5bdde783..bc137218 100644 --- a/syntax/yats/typescript.vim +++ b/syntax/yats/typescript.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/syntax/yats/web-blob.vim b/syntax/yats/web-blob.vim index b9f4c78a..aa0b6331 100644 --- a/syntax/yats/web-blob.vim +++ b/syntax/yats/web-blob.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/syntax/yats/web-console.vim b/syntax/yats/web-console.vim index ff40a3fa..b425430e 100644 --- a/syntax/yats/web-console.vim +++ b/syntax/yats/web-console.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/syntax/yats/web-crypto.vim b/syntax/yats/web-crypto.vim index 0e2f38aa..8160a2af 100644 --- a/syntax/yats/web-crypto.vim +++ b/syntax/yats/web-crypto.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/syntax/yats/web-encoding.vim b/syntax/yats/web-encoding.vim index 8728b5c2..8daef399 100644 --- a/syntax/yats/web-encoding.vim +++ b/syntax/yats/web-encoding.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/syntax/yats/web-fetch.vim b/syntax/yats/web-fetch.vim index 7a815e91..79f4b218 100644 --- a/syntax/yats/web-fetch.vim +++ b/syntax/yats/web-fetch.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/syntax/yats/web-geo.vim b/syntax/yats/web-geo.vim index b3d5e85a..3bb9ceb9 100644 --- a/syntax/yats/web-geo.vim +++ b/syntax/yats/web-geo.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/syntax/yats/web-history.vim b/syntax/yats/web-history.vim index e4f05850..6301a7c9 100644 --- a/syntax/yats/web-history.vim +++ b/syntax/yats/web-history.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/syntax/yats/web-location.vim b/syntax/yats/web-location.vim index 6484f74b..6cbba7ba 100644 --- a/syntax/yats/web-location.vim +++ b/syntax/yats/web-location.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/syntax/yats/web-navigator.vim b/syntax/yats/web-navigator.vim index 020212d3..1c839e2e 100644 --- a/syntax/yats/web-navigator.vim +++ b/syntax/yats/web-navigator.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/syntax/yats/web-network.vim b/syntax/yats/web-network.vim index bffc3f52..2814a243 100644 --- a/syntax/yats/web-network.vim +++ b/syntax/yats/web-network.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/syntax/yats/web-payment.vim b/syntax/yats/web-payment.vim index 43b429db..ce374140 100644 --- a/syntax/yats/web-payment.vim +++ b/syntax/yats/web-payment.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/syntax/yats/web-service-worker.vim b/syntax/yats/web-service-worker.vim index 708a7b9d..fc039900 100644 --- a/syntax/yats/web-service-worker.vim +++ b/syntax/yats/web-service-worker.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/syntax/yats/web-window.vim b/syntax/yats/web-window.vim index 13a40f92..7e7ff43e 100644 --- a/syntax/yats/web-window.vim +++ b/syntax/yats/web-window.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/syntax/yats/web-xhr.vim b/syntax/yats/web-xhr.vim index ef70d0b2..d6dd2590 100644 --- a/syntax/yats/web-xhr.vim +++ b/syntax/yats/web-xhr.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/syntax/yats/web.vim b/syntax/yats/web.vim index fa7d3693..f0b18686 100644 --- a/syntax/yats/web.vim +++ b/syntax/yats/web.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('typescript', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'typescript') finish endif diff --git a/syntax/z8a.vim b/syntax/z8a.vim index c43253f1..fd9a4e64 100644 --- a/syntax/z8a.vim +++ b/syntax/z8a.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('z8a', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'z8a') finish endif diff --git a/syntax/zephir.vim b/syntax/zephir.vim index 54bfa05e..04aaa7d2 100644 --- a/syntax/zephir.vim +++ b/syntax/zephir.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('zephir', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'zephir') finish endif diff --git a/syntax/zig.vim b/syntax/zig.vim index 0790689d..66ccb58d 100644 --- a/syntax/zig.vim +++ b/syntax/zig.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('zig', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'zig') finish endif diff --git a/syntax/zimbu.vim b/syntax/zimbu.vim index 3e193121..23b2b707 100644 --- a/syntax/zimbu.vim +++ b/syntax/zimbu.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('zimbu', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'zimbu') finish endif diff --git a/syntax/zir.vim b/syntax/zir.vim index 10033967..b1cfb5ca 100644 --- a/syntax/zir.vim +++ b/syntax/zir.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('zig', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'zig') finish endif diff --git a/syntax/zsh.vim b/syntax/zsh.vim index fc5810af..11d5f394 100644 --- a/syntax/zsh.vim +++ b/syntax/zsh.vim @@ -1,4 +1,4 @@ -if !polyglot#util#IsEnabled('sh', expand('<sfile>:p')) +if !has_key(g:polyglot_is_disabled, 'sh') finish endif |