mirror of
https://github.com/leafOfTree/vim-vue-plugin.git
synced 2025-12-08 21:54:46 +08:00
Update doc
This commit is contained in:
@@ -131,12 +131,14 @@ For boolean options, set `1` to enable or `0` to disable
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
|
Only for demo. Try to set syntax as little as possible for performance
|
||||||
|
|
||||||
```vim
|
```vim
|
||||||
let g:vim_vue_plugin_config = {
|
let g:vim_vue_plugin_config = {
|
||||||
\'syntax': {
|
\'syntax': {
|
||||||
\ 'template': ['html', 'pug'],
|
\ 'template': ['html', 'pug'],
|
||||||
\ 'script': ['javascript', 'typescript', 'coffee'],
|
\ 'script': ['javascript', 'typescript', 'coffee'],
|
||||||
\ 'style': ['scss'],
|
\ 'style': ['scss', 'sass', 'less', 'stylus'],
|
||||||
\ 'i18n': ['json', 'yaml'],
|
\ 'i18n': ['json', 'yaml'],
|
||||||
\ 'route': 'json',
|
\ 'route': 'json',
|
||||||
\ 'docs': 'markdown',
|
\ '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
|
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
|
## 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
|
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
|
+ endif
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## Acknowledgments & Refs
|
## Acknowledgments & Refs
|
||||||
|
|
||||||
- [mxw/vim-jsx][1]
|
- [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
|
[14]: https://github.com/leafgarland/typescript-vim
|
||||||
[15]: https://github.com/HerringtonDarkholme/yats.vim
|
[15]: https://github.com/HerringtonDarkholme/yats.vim
|
||||||
[16]: https://github.com/iloginow/vim-stylus
|
[16]: https://github.com/iloginow/vim-stylus
|
||||||
|
[17]: https://github.com/leafOfTree/vim-vue-plugin/issues/23#issuecomment-628306633
|
||||||
|
|||||||
Reference in New Issue
Block a user