更新vue语法高亮
This commit is contained in:
parent
0d6eeb667f
commit
0cc9512218
@ -1,8 +1,9 @@
|
|||||||
local G = require("G")
|
local G = require("G")
|
||||||
require'nvim-treesitter.configs'.setup {
|
require'nvim-treesitter.configs'.setup {
|
||||||
-- A list of parser names, or "all" (the four listed parsers should always be installed)
|
-- A list of parser names, or "all" (the four listed parsers should always be installed)
|
||||||
ensure_installed = { "c", "lua", "vim", "help" },
|
ensure_installed = { "javascript", "typescript", "html", "css", "vue", "c", "lua", "vim", "help"},
|
||||||
|
|
||||||
|
indent = { enable = true },
|
||||||
-- Install parsers synchronously (only applied to `ensure_installed`)
|
-- Install parsers synchronously (only applied to `ensure_installed`)
|
||||||
sync_install = false,
|
sync_install = false,
|
||||||
|
|
||||||
@ -41,12 +42,12 @@ require'nvim-treesitter.configs'.setup {
|
|||||||
additional_vim_regex_highlighting = false,
|
additional_vim_regex_highlighting = false,
|
||||||
},
|
},
|
||||||
parsers = {
|
parsers = {
|
||||||
html = {
|
html = {
|
||||||
install_info = {
|
install_info = {
|
||||||
url = "https://github.com/ikatyang/tree-sitter-vue",
|
url = "https://github.com/ikatyang/tree-sitter-vue",
|
||||||
files = {"src/parser.c"},
|
files = {"src/parser.c"},
|
||||||
branch = "main"
|
branch = "main"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user