summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-09-23 23:49:57 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2020-09-23 23:49:57 +0200
commit50aa05bd7223bf8887c1b66d092c5177c061c812 (patch)
tree625afa6cc6daa9e1144b44aef10c46b845ee45a6 /README.md
parent7e2d060f880a2d1d8e4742e27709869425983335 (diff)
downloadvim-polyglot-4.11.0.tar.gz
vim-polyglot-4.11.0.zip
Allow to disable only syntax highlighting, #556v4.11.0
Diffstat (limited to 'README.md')
-rw-r--r--README.md8
1 files changed, 7 insertions, 1 deletions
diff --git a/README.md b/README.md
index 652c1361..75412436 100644
--- a/README.md
+++ b/README.md
@@ -263,7 +263,13 @@ The list of available languages to disable is shown above.
*Please declare this variable before polyglot is loaded (at the top of .vimrc)*
-Please note that disabling a language won't make in your vim startup any faster / slower (only for specific this specific filetype). All plugins are loaded lazily, on demand.
+If you wish to use filetype detection by Vim Polyglot but you'd like to use your own syntax-highlighting plugin, you can append `.plugin` to disabled entry, like so:
+
+```vim
+let g:polyglot_disabled = ['markdown.plugin']
+```
+
+Please note that disabling a language won't make in your vim startup any faster / slower (only for specific this specific filetype). All plugins are lazily loaded only when they are really needed.
Vim Polyglot tries to automatically detect indentation settings (just like vim-sleuth). If this feature is not working for you for some reason, please file an issue and disable it temporarily with: