From 6f476f3b90c8fcdce15eb4591d324075eb853ccc Mon Sep 17 00:00:00 2001 From: Ian Emnace Date: Tue, 19 Mar 2019 13:52:19 +0800 Subject: [PATCH] Update readme for g:vue_pre_processors The change in commit ba9a3dbc4ed4dc2b75e2678955879492175a4223 is documented in the README, to augment the information regarding pre-processor languages and g:vue_disable_pre_processors. --- readme.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 1100754..9079ab9 100644 --- a/readme.md +++ b/readme.md @@ -128,5 +128,14 @@ endfunction ### _Vim slows down when using this plugin_ How can I fix that? +When checking for pre-processor languages, multiple syntax highlighting checks are done, which can slow down vim. You can trim down which pre-processors to use by setting `g:vue_pre_processors` to a whitelist of languages to support: -Add `let g:vue_disable_pre_processors=1` in your .vimrc to disable checking for prepocessors. When checking for preprocessor languages, multiple syntax highlighting checks are done, which can slow down vim. This variable prevents vim-vue from supporting **every** pre-processor language highlighting. +```vim +let g:vue_pre_processors = ['pug', 'scss'] +``` + +Or alternatively, disable pre-processor languages altogether: + +```vim +let g:vue_disable_pre_processors = 1 +```