From 0cc9512218aa0680ec7e9adfb612c2d7ac91d492 Mon Sep 17 00:00:00 2001 From: QQ <1770362456@qq.com> Date: Sat, 18 Feb 2023 19:55:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0vue=E8=AF=AD=E6=B3=95?= =?UTF-8?q?=E9=AB=98=E4=BA=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/Plugin/treesitter.lua | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) 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" + } } } }