From 5067a5cc253e90b88c0dc8f42dc5218552e0bd35 Mon Sep 17 00:00:00 2001 From: leafOfTree Date: Mon, 19 Apr 2021 18:59:32 +0800 Subject: [PATCH] Update doc --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e912ac5..b40104d 100644 --- a/README.md +++ b/README.md @@ -131,12 +131,14 @@ For boolean options, set `1` to enable or `0` to disable ### Example +Only for demo. Try to set syntax as little as possible for performance + ```vim let g:vim_vue_plugin_config = { \'syntax': { \ 'template': ['html', 'pug'], \ 'script': ['javascript', 'typescript', 'coffee'], - \ 'style': ['scss'], + \ 'style': ['scss', 'sass', 'less', 'stylus'], \ 'i18n': ['json', 'yaml'], \ 'route': 'json', \ 'docs': 'markdown', @@ -263,6 +265,8 @@ This plugin provides functions to get the tag/subtype where the cursor is in Currently emmet-vim works regarding your `html, javascript, css, ...` emmet settings, but it depends on how emmet-vim gets `filetype` and may change in the future. Feel free to report an issue if any problem appears +For `sass` using emmet-vim, please check out [this issue][17] + ## Avoid overload Since there are many sub-languages included, most delays come from syntax files overload. A variable named `b:current_loading_main_syntax` is set to `vue` which can be used as loading condition if you'd like to manually find and modify the syntax files causing overload @@ -285,7 +289,6 @@ For example, the built-in syntax `sass.vim` and `less.vim` in vim8.1 runtime and + endif ``` - ## Acknowledgments & Refs - [mxw/vim-jsx][1] @@ -318,3 +321,4 @@ This plugin is under [The Unlicense][8]. Other than this, `lib/indent/*` files a [14]: https://github.com/leafgarland/typescript-vim [15]: https://github.com/HerringtonDarkholme/yats.vim [16]: https://github.com/iloginow/vim-stylus +[17]: https://github.com/leafOfTree/vim-vue-plugin/issues/23#issuecomment-628306633