From d6678a1b35f7cb873a6a62c371dcadfc03c8ae0d Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Fri, 1 Jan 2021 16:54:03 +0100 Subject: Allow to disable ftdetect scripts, closes #657 --- ftdetect/polyglot.vim | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ftdetect') diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim index 85c933e3..45087f65 100644 --- a/ftdetect/polyglot.vim +++ b/ftdetect/polyglot.vim @@ -140,6 +140,8 @@ augroup filetypedetect let s:cpo_save = &cpo set cpo&vim +if !has_key(g:polyglot_is_disabled, 'ftdetect') + " DO NOT EDIT CODE BELOW, IT IS GENERATED WITH MAKEFILE if !has_key(g:polyglot_is_disabled, 'jsonc') @@ -2655,6 +2657,8 @@ endif " DO NOT EDIT CODE ABOVE, IT IS GENERATED WITH MAKEFILE +endif + func! s:Observe(fn) let b:PolyglotObserve = function("polyglot#" . a:fn) augroup polyglot-observer -- cgit v1.2.3