diff options
Diffstat (limited to '')
-rw-r--r-- | autoload/crystal/indent.vim | 5 | ||||
-rw-r--r-- | autoload/crystal_lang.vim | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/autoload/crystal/indent.vim b/autoload/crystal/indent.vim index ffd780e0..d50c6e29 100644 --- a/autoload/crystal/indent.vim +++ b/autoload/crystal/indent.vim @@ -1,3 +1,8 @@ +let files = filter(globpath(&rtp, 'autoload/crystal/indent.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" }) +if len(files) > 0 + exec 'source ' . files[0] + finish +endif if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'crystal') == -1 " Variables {{{1 diff --git a/autoload/crystal_lang.vim b/autoload/crystal_lang.vim index b0e63ea2..3b10ecbd 100644 --- a/autoload/crystal_lang.vim +++ b/autoload/crystal_lang.vim @@ -1,3 +1,8 @@ +let files = filter(globpath(&rtp, 'autoload/crystal_lang.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" }) +if len(files) > 0 + exec 'source ' . files[0] + finish +endif if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'crystal') == -1 let s:V = vital#crystal#new() |