summaryrefslogtreecommitdiffstats
path: root/ftplugin/docker-compose.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ftplugin/docker-compose.vim')
-rw-r--r--ftplugin/docker-compose.vim6
1 files changed, 2 insertions, 4 deletions
diff --git a/ftplugin/docker-compose.vim b/ftplugin/docker-compose.vim
index 45a103fc..44361375 100644
--- a/ftplugin/docker-compose.vim
+++ b/ftplugin/docker-compose.vim
@@ -1,9 +1,7 @@
-if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'dockerfile') != -1
- finish
-endif
-
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dockerfile') == -1
" Define comment string
setlocal commentstring=#\ %s
" Enable automatic comment insertion
setlocal formatoptions+=cro
+endif