mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-08 11:33:52 -05:00
Prevent overriding filetype set, fixes #663
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user