diff options
Diffstat (limited to 'ftplugin/ecrystal.vim')
-rw-r--r-- | ftplugin/ecrystal.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ftplugin/ecrystal.vim b/ftplugin/ecrystal.vim index 58ccde5a..0aa94254 100644 --- a/ftplugin/ecrystal.vim +++ b/ftplugin/ecrystal.vim @@ -1,3 +1,8 @@ +let files = filter(globpath(&rtp, 'ftplugin/ecrystal.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 " Filetype plugin for https://crystal-lang.org/api/0.35.1/ECR.html |