From 8e61708b4527072aa9250deb2c4cf7a56e3f3b0a Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Sat, 24 Oct 2020 18:52:18 +0200 Subject: Use vim-polyglot only as fallback to other plugins, fixes #580 --- autoload/puppet/align.vim | 5 +++++ autoload/puppet/ctags.vim | 5 +++++ autoload/puppet/format.vim | 5 +++++ 3 files changed, 15 insertions(+) (limited to 'autoload/puppet') diff --git a/autoload/puppet/align.vim b/autoload/puppet/align.vim index b7dc1eda..712b686b 100644 --- a/autoload/puppet/align.vim +++ b/autoload/puppet/align.vim @@ -1,3 +1,8 @@ +let files = filter(globpath(&rtp, 'autoload/puppet/align.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, 'puppet') == -1 function! puppet#align#IndentLevel(lnum) diff --git a/autoload/puppet/ctags.vim b/autoload/puppet/ctags.vim index 8f4d108f..a86490bb 100644 --- a/autoload/puppet/ctags.vim +++ b/autoload/puppet/ctags.vim @@ -1,3 +1,8 @@ +let files = filter(globpath(&rtp, 'autoload/puppet/ctags.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, 'puppet') == -1 diff --git a/autoload/puppet/format.vim b/autoload/puppet/format.vim index 519fcc71..50337849 100644 --- a/autoload/puppet/format.vim +++ b/autoload/puppet/format.vim @@ -1,3 +1,8 @@ +let files = filter(globpath(&rtp, 'autoload/puppet/format.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, 'puppet') == -1 " -- cgit v1.2.3