mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-09 12:03:53 -05:00
Allow to disable ftdetect scripts, closes #657
This commit is contained in:
@@ -247,6 +247,15 @@ Vim Polyglot includes vim-sensible plugin, which is usually necessary for editin
|
|||||||
let g:polyglot_disabled = ['sensible']
|
let g:polyglot_disabled = ['sensible']
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## No ftdetect
|
||||||
|
|
||||||
|
If you want to use vim-polyglot plugins, but not ftdetect autocommands, the you can disable it as so:
|
||||||
|
|
||||||
|
|
||||||
|
```vim
|
||||||
|
let g:polyglot_disabled = ['ftdetect']
|
||||||
|
```
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
||||||
Language packs are periodically updated using automated `scripts/build` script.
|
Language packs are periodically updated using automated `scripts/build` script.
|
||||||
|
|||||||
@@ -140,6 +140,8 @@ augroup filetypedetect
|
|||||||
let s:cpo_save = &cpo
|
let s:cpo_save = &cpo
|
||||||
set cpo&vim
|
set cpo&vim
|
||||||
|
|
||||||
|
if !has_key(g:polyglot_is_disabled, 'ftdetect')
|
||||||
|
|
||||||
" DO NOT EDIT CODE BELOW, IT IS GENERATED WITH MAKEFILE
|
" DO NOT EDIT CODE BELOW, IT IS GENERATED WITH MAKEFILE
|
||||||
|
|
||||||
if !has_key(g:polyglot_is_disabled, 'jsonc')
|
if !has_key(g:polyglot_is_disabled, 'jsonc')
|
||||||
@@ -2655,6 +2657,8 @@ endif
|
|||||||
|
|
||||||
" DO NOT EDIT CODE ABOVE, IT IS GENERATED WITH MAKEFILE
|
" DO NOT EDIT CODE ABOVE, IT IS GENERATED WITH MAKEFILE
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
||||||
func! s:Observe(fn)
|
func! s:Observe(fn)
|
||||||
let b:PolyglotObserve = function("polyglot#" . a:fn)
|
let b:PolyglotObserve = function("polyglot#" . a:fn)
|
||||||
augroup polyglot-observer
|
augroup polyglot-observer
|
||||||
|
|||||||
Reference in New Issue
Block a user