mirror of
https://github.com/leafOfTree/vim-vue-plugin.git
synced 2025-12-08 05:34:44 +08:00
Update doc
This commit is contained in:
@@ -92,9 +92,11 @@ let g:vim_vue_plugin_load_full_syntax = 1
|
|||||||
|
|
||||||
## Custom blocks
|
## 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
|
```vim
|
||||||
let g:vim_vue_plugin_custom_blocks = {
|
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
|
```vue
|
||||||
<docs>
|
<docs>
|
||||||
# This is the documentation for component.
|
# This is the documentation for component.
|
||||||
|
|||||||
Reference in New Issue
Block a user