leaf
ef886ddbd1
Merge pull request #49 from leafOfTree/help-doc
...
Add help doc
2026-10-21 21:58:58 +08:00
leafOfTree
84fe692afe
Merge syntax config per block
...
syntax in g:vim_vue_plugin_config replaced the whole default, so
{'syntax': {'script': ['javascript', 'typescript']}} removed template
and style, which then had no highlight or indent. Replace the default
of each key separately, like vim-svelte-plugin. A block can be removed
by setting it to [].
2026-10-21 13:52:18 +00:00
leafOfTree
de9fbec1ad
Handle syntax without syntax or indent files
...
A syntax in the config without a syntax file, like postcss, showed
E484 on opening a file. Skip loading it, with a warning in debug.
A syntax without an indent file used cindent, which broke indent of
languages like pug, stylus without their plugins, or toml. Keep the
indent instead. Lines outside blocks still use cindent.
2026-10-21 13:51:38 +00:00
leafOfTree
e0de1005bf
Get block tag of the end tag line
...
GetVueTag() returned '' on the end tag line like </template>, as the
check for blank lines after a block also applied to the end tag line
itself.
2026-10-19 13:42:16 +00:00
leafOfTree
4da7d448ae
Fix GetVueTag for blank lines between blocks
2022-06-15 14:22:54 +08:00
leafOfTree
3d2680a859
Support view block
2021-07-30 14:41:13 +08:00
leafOfTree
98e22f2af4
Rename function name for clearer meaning
2021-05-20 11:47:17 +08:00
leafOfTree
9e55939c89
Rename subtype to syntax
2021-04-23 12:49:55 +08:00
leafOfTree
483e45e198
Change options order
2021-04-16 16:22:51 +08:00
leafOfTree
f1b7ea05b8
Backwards compatibility with init_indent
2021-04-16 14:46:11 +08:00
leafOfTree
6a94c30ec7
Add new 'initial indent' option
2021-04-16 13:33:56 +08:00
leafOfTree
dcbdcbea37
Support full_syntax to be list or string
2021-04-14 11:27:35 +08:00
leafOfTree
26002b6212
Allow empty syntax list
2021-04-14 10:53:03 +08:00
leafOfTree
8d3c18621d
Set syntax sync by each block syntax
2021-04-14 10:51:25 +08:00
leafOfTree
d90b18e1c7
Update doc/message
2021-03-29 17:31:39 +08:00
leafOfTree
e1dab23589
Improve code and performance
2021-03-29 15:58:50 +08:00
leafOfTree
2b050c42c1
Refactor the whole plugin
2021-03-23 11:50:46 +08:00
leafOfTree
9af7723bd1
Support custom blocks syntax and indent
2021-03-11 14:52:38 +08:00
leafOfTree
b32c3a5bf7
Improve code format
2020-11-19 09:52:03 +08:00
leafOfTree
ad9f8a7f5f
Make sure there is syntax to check subtype
2020-11-02 13:06:54 +08:00
leafOfTree
de581bc075
Add Vue subtype onChange event
2020-10-13 14:51:25 +08:00
leafOfTree
b22a41fb6b
Use a help function to get user config
2020-07-17 08:45:06 +08:00
DCRichards
2da2a2fe03
15: Moved Log function to autoload and replace echom
2019-10-08 10:34:52 +01:00