diff options
Diffstat (limited to 'ftplugin/docker-compose.vim')
-rw-r--r-- | ftplugin/docker-compose.vim | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/ftplugin/docker-compose.vim b/ftplugin/docker-compose.vim index df33d6fd..89cc8647 100644 --- a/ftplugin/docker-compose.vim +++ b/ftplugin/docker-compose.vim @@ -1,16 +1,9 @@ -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, 'ftplugin/docker-compose.vim', 1, 1), Filter) -if len(files) > 0 - exec 'source ' . files[0] +if !polyglot#util#IsEnabled('docker-compose', expand('<sfile>:p')) finish endif -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'docker-compose') == -1 " Define comment string setlocal commentstring=#\ %s " Enable automatic comment insertion setlocal formatoptions+=cro - -endif |