mirror of
https://github.com/leafOfTree/vim-vue-plugin.git
synced 2026-02-24 18:49:54 +08:00
Update doc
This commit is contained in:
16
README.md
16
README.md
@@ -67,12 +67,10 @@ 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': {
|
||||||
@@ -91,7 +89,9 @@ see [Configuration](#configuration) for details
|
|||||||
|
|
||||||
### 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