summaryrefslogtreecommitdiffstats
path: root/autoload/elixir/util.vim
diff options
context:
space:
mode:
Diffstat (limited to 'autoload/elixir/util.vim')
-rw-r--r--autoload/elixir/util.vim9
1 files changed, 1 insertions, 8 deletions
diff --git a/autoload/elixir/util.vim b/autoload/elixir/util.vim
index 7acc8814..e5c660f3 100644
--- a/autoload/elixir/util.vim
+++ b/autoload/elixir/util.vim
@@ -1,11 +1,6 @@
-let s:base = expand("<sfile>:h:h")
-let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
-let files = filter(globpath(&rtp, 'autoload/elixir/util.vim', 1, 1), Filter)
-if len(files) > 0
- exec 'source ' . files[0]
+if !polyglot#util#IsEnabled('elixir', expand('<sfile>:p'))
finish
endif
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elixir') == -1
function! elixir#util#get_filename(word) abort
let word = a:word
@@ -31,5 +26,3 @@ function! elixir#util#get_filename(word) abort
return word
endfunction
-
-endif