mirror of
https://github.com/leafOfTree/vim-vue-plugin.git
synced 2025-12-08 13:44:46 +08:00
Update doc
This commit is contained in:
46
README.md
46
README.md
@@ -67,31 +67,31 @@ see [Configuration](#configuration) for details
|
|||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
`g:vim_vue_plugin_config` is the only configuration variable
|
`g:vim_vue_plugin_config`*dict* is the only configuration
|
||||||
|
|
||||||
- type: `dict`
|
This is the **default value**. You could copy it as a starting point
|
||||||
- default:
|
|
||||||
|
|
||||||
You could copy the default value as a starting point
|
```vim
|
||||||
```vim
|
let g:vim_vue_plugin_config = {
|
||||||
let g:vim_vue_plugin_config = {
|
\'syntax': {
|
||||||
\'syntax': {
|
\ 'script': ['javascript'],
|
||||||
\ 'script': ['javascript'],
|
\ 'template': ['html'],
|
||||||
\ 'template': ['html'],
|
\ 'style': ['css'],
|
||||||
\ 'style': ['css'],
|
\},
|
||||||
\},
|
\'full_syntax': [],
|
||||||
\'full_syntax': [],
|
\'attribute': 0,
|
||||||
\'attribute': 0,
|
\'keyword': 0,
|
||||||
\'keyword': 0,
|
\'foldexpr': 0,
|
||||||
\'foldexpr': 0,
|
\'init_indent': 0,
|
||||||
\'init_indent': 0,
|
\'debug': 0,
|
||||||
\'debug': 0,
|
\}
|
||||||
\}
|
```
|
||||||
```
|
|
||||||
|
|
||||||
### Description
|
### Description
|
||||||
|
|
||||||
- `syntax`*dict* A dictionary with the following key-value pairs
|
`g:vim_vue_plugin_config` has following options
|
||||||
|
|
||||||
|
- `syntax`*dict* A dictionary with following key-value pairs
|
||||||
|
|
||||||
- `key`*string*: a block's tag name
|
- `key`*string*: a block's tag name
|
||||||
- `value`*list*: a list of syntax name for the block
|
- `value`*list*: a list of syntax name for the block
|
||||||
@@ -102,6 +102,8 @@ see [Configuration](#configuration) for details
|
|||||||
|
|
||||||
- `full_syntax`*list*: a list of syntax name whose **full** syntax files are always loaded
|
- `full_syntax`*list*: a list of syntax name whose **full** syntax files are always loaded
|
||||||
|
|
||||||
|
For boolean options, set `0` to enable or `1` to disable
|
||||||
|
|
||||||
- `attribute`: highlight Vue attribute as expression instead of string
|
- `attribute`: highlight Vue attribute as expression instead of string
|
||||||
|
|
||||||
- `keyword`: highlight Vue keyword such as `data`, `methods`, ...
|
- `keyword`: highlight Vue keyword such as `data`, `methods`, ...
|
||||||
@@ -112,9 +114,7 @@ see [Configuration](#configuration) for details
|
|||||||
|
|
||||||
- `debug`: echo debug messages in `messages` list
|
- `debug`: echo debug messages in `messages` list
|
||||||
|
|
||||||
> For boolean option, set `0` to enable or `1` to disable
|
> Please check `:h dict` and `:h list` for details about the complex data types
|
||||||
>
|
|
||||||
> Please check `:h dict` `:h list` for details about the complex data types
|
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
One possible usage
|
One possible usage
|
||||||
|
|||||||
Reference in New Issue
Block a user