mirror of
https://github.com/leafOfTree/vim-vue-plugin.git
synced 2026-08-12 19:06:55 +08:00
Update doc
This commit is contained in:
@@ -68,12 +68,12 @@ The filetype will be set to `vue`. Feel free to open an issue or pull request if
|
|||||||
|
|
||||||
- Attribute and keyword highlight
|
- Attribute and keyword highlight
|
||||||
|
|
||||||
- A built-in `foldexpr` foldmethod
|
|
||||||
|
|
||||||
- [emmet-vim][10] `html, javascript, css, ...` filetype detection
|
- [emmet-vim][10] `html, javascript, css, ...` filetype detection
|
||||||
|
|
||||||
- Context-based behavior, such as to get current tag or syntax, and set local options like `commentstring`
|
- Context-based behavior, such as to get current tag or syntax, and set local options like `commentstring`
|
||||||
|
|
||||||
|
- A built-in `foldexpr` foldmethod
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
`g:vim_vue_plugin_config`*dict* is the only configuration
|
`g:vim_vue_plugin_config`*dict* is the only configuration
|
||||||
@@ -115,18 +115,18 @@ let g:vim_vue_plugin_config = {
|
|||||||
|
|
||||||
For boolean options, set `1` to enable or `0` to disable
|
For boolean options, set `1` to enable or `0` to disable
|
||||||
|
|
||||||
- `attribute`: highlight Vue attribute as expression instead of string
|
- `attribute`: highlight attribute as expression instead of string
|
||||||
|
|
||||||
- `keyword`: highlight Vue keyword such as `data`, `methods`, ...
|
- `keyword`: highlight keyword such as `data`, `methods`, ...
|
||||||
|
|
||||||
- `foldexpr`: enable built-in `foldexpr` foldmethod
|
- `foldexpr`: enable built-in `foldexpr` foldmethod
|
||||||
|
|
||||||
- `debug`: echo debug messages in `messages` list
|
- `debug`: echo debug messages in `messages` list
|
||||||
|
|
||||||
> `typescript` matches `lang="ts"`
|
|
||||||
|
|
||||||
> Please check `:h dict` and `:h list` for details about the complex data types
|
> Please check `:h dict` and `:h list` for details about the complex data types
|
||||||
|
|
||||||
|
> `typescript` matches `lang="ts"`
|
||||||
|
|
||||||
> For `.wpy`, `initial_indent` defaults to `['script', 'style']`
|
> For `.wpy`, `initial_indent` defaults to `['script', 'style']`
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|||||||
Reference in New Issue
Block a user