mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-10 04:23:51 -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)
|
let b:PolyglotObserve = function("polyglot#" . a:fn)
|
||||||
augroup polyglot-observer
|
augroup polyglot-observer
|
||||||
au!
|
au!
|
||||||
au CursorHold,CursorHoldI <buffer> call b:PolyglotObserve()
|
au CursorHold,CursorHoldI <buffer> if (&ft == "" || &ft == "conf") | call b:PolyglotObserve() | endif
|
||||||
augroup END
|
augroup END
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user