diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2021-01-14 21:11:27 +0100 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2021-01-14 21:11:27 +0100 |
commit | 4c10562d2cc9b084518284c49a158558da5180a7 (patch) | |
tree | 5ccbded1f06f87a132f4a1a0e9488683cf902db0 | |
parent | 22040ce638ed610cfdbba03376ad9864a2a5d321 (diff) | |
download | vim-polyglot-4c10562d2cc9b084518284c49a158558da5180a7.tar.gz vim-polyglot-4c10562d2cc9b084518284c49a158558da5180a7.zip |
Prevent overriding filetype set, fixes #663
-rw-r--r-- | autoload/polyglot/init.vim | 2 |
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 |