Update doc

This commit is contained in:
leafOfTree
2021-03-11 17:00:00 +08:00
parent 23f28eab69
commit fe9e97cd44

View File

@@ -92,9 +92,11 @@ let g:vim_vue_plugin_load_full_syntax = 1
## Custom blocks
You could enable syntax highlighting in a custom block by setting `g:vim_vue_plugin_custom_blocks`.
You can enable highlighting in a custom block by setting `g:vim_vue_plugin_custom_blocks`.
Its structure is `{ block: filetype }` or `{ block: filetype[] }`. When providing a filetype list, you need to add `lang="..."` in the tag. Otherwise, the first one will be used.
The structure is `{ block: filetype }` or `{ block: filetype[] }`. When providing a filetype list, you need to add `lang="..."` in the tag. Otherwise, the first one will be used.
### Example
```vim
let g:vim_vue_plugin_custom_blocks = {
@@ -103,6 +105,8 @@ let g:vim_vue_plugin_custom_blocks = {
\}
```
Will highlight custom blocks in `.vue` file such as
```vue
<docs>
# This is the documentation for component.