diff options
Diffstat (limited to '')
-rw-r--r-- | ftplugin/rust.vim | 5 | ||||
-rw-r--r-- | ftplugin/rust/tagbar.vim | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/ftplugin/rust.vim b/ftplugin/rust.vim index 211f86b0..408a9199 100644 --- a/ftplugin/rust.vim +++ b/ftplugin/rust.vim @@ -1,3 +1,8 @@ +let files = filter(globpath(&rtp, 'ftplugin/rust.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, 'rust') == -1 " Language: Rust diff --git a/ftplugin/rust/tagbar.vim b/ftplugin/rust/tagbar.vim index 9533a682..875b766a 100644 --- a/ftplugin/rust/tagbar.vim +++ b/ftplugin/rust/tagbar.vim @@ -1,3 +1,8 @@ +let files = filter(globpath(&rtp, 'ftplugin/rust/tagbar.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, 'rust') == -1 " |