Prevent overriding filetype set, fixes #663

This commit is contained in:
Adam Stankiewicz
2021-01-14 21:11:27 +01:00
parent 22040ce638
commit 4c10562d2c

View File

@@ -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