Allow to disable ftdetect scripts, closes #657

This commit is contained in:
Adam Stankiewicz
2021-01-01 16:54:03 +01:00
parent 0626cc90a2
commit d6678a1b35
2 changed files with 13 additions and 0 deletions

View File

@@ -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