You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+10-1
Original file line number
Diff line number
Diff line change
@@ -113,5 +113,14 @@ endfunction
113
113
</details>
114
114
115
115
### _Vim slows down when using this plugin_ How can I fix that?
116
+
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:
116
117
117
-
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.
118
+
```vim
119
+
let g:vue_pre_processors = ['pug', 'scss']
120
+
```
121
+
122
+
Or alternatively, disable pre-processor languages altogether:
0 commit comments