diff options
Diffstat (limited to 'autoload')
59 files changed, 58 insertions, 122 deletions
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 |