From 4c10562d2cc9b084518284c49a158558da5180a7 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Thu, 14 Jan 2021 21:11:27 +0100 Subject: Prevent overriding filetype set, fixes #663 --- autoload/polyglot/init.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 call b:PolyglotObserve() + au CursorHold,CursorHoldI if (&ft == "" || &ft == "conf") | call b:PolyglotObserve() | endif augroup END endfunc -- cgit v1.2.3