summaryrefslogtreecommitdiffstats
path: root/autoload/polyglot/init.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2021-01-14 21:11:27 +0100
committerAdam Stankiewicz <sheerun@sher.pl>2021-01-14 21:11:27 +0100
commit4c10562d2cc9b084518284c49a158558da5180a7 (patch)
tree5ccbded1f06f87a132f4a1a0e9488683cf902db0 /autoload/polyglot/init.vim
parent22040ce638ed610cfdbba03376ad9864a2a5d321 (diff)
downloadvim-polyglot-4c10562d2cc9b084518284c49a158558da5180a7.tar.gz
vim-polyglot-4c10562d2cc9b084518284c49a158558da5180a7.zip
Prevent overriding filetype set, fixes #663
Diffstat (limited to 'autoload/polyglot/init.vim')
-rw-r--r--autoload/polyglot/init.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload/polyglot/init.vim b/autoload/polyglot/init.vim
index bd91a37f..837515ee 100644
--- a/autoload/polyglot/init.vim
+++ b/autoload/polyglot/init.vim
@@ -2693,7 +2693,7 @@ func! s:Observe(fn)
let b:PolyglotObserve = function("polyglot#" . a:fn)
augroup polyglot-observer
au!
- au CursorHold,CursorHoldI <buffer> call b:PolyglotObserve()
+ au CursorHold,CursorHoldI <buffer> if (&ft == "" || &ft == "conf") | call b:PolyglotObserve() | endif
augroup END
endfunc