diff --git a/lua/Plugin/treesitter.lua b/lua/Plugin/treesitter.lua index 2f9ae81..2e357b4 100644 --- a/lua/Plugin/treesitter.lua +++ b/lua/Plugin/treesitter.lua @@ -1,8 +1,9 @@ local G = require("G") require'nvim-treesitter.configs'.setup { -- 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`) sync_install = false, @@ -41,12 +42,12 @@ require'nvim-treesitter.configs'.setup { additional_vim_regex_highlighting = false, }, parsers = { - html = { - install_info = { - url = "https://github.com/ikatyang/tree-sitter-vue", - files = {"src/parser.c"}, - branch = "main" - } + html = { + install_info = { + url = "https://github.com/ikatyang/tree-sitter-vue", + files = {"src/parser.c"}, + branch = "main" + } } } }