From 6c52d13b7464bcd216f47f511d0554be732049b8 Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Thu, 7 Mar 2024 12:50:18 +0100 Subject: [PATCH] treesitter: auto (closing) tag --- lua/kickstart/plugins/treesitter.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lua/kickstart/plugins/treesitter.lua b/lua/kickstart/plugins/treesitter.lua index 9118f1e..0798fe4 100644 --- a/lua/kickstart/plugins/treesitter.lua +++ b/lua/kickstart/plugins/treesitter.lua @@ -3,6 +3,7 @@ return { { -- Highlight, edit, and navigate code 'nvim-treesitter/nvim-treesitter', dependencies = { + 'windwp/nvim-ts-autotag', 'nvim-treesitter/nvim-treesitter-context', 'nvim-treesitter/nvim-treesitter-textobjects', }, @@ -15,6 +16,11 @@ return { ensure_installed = { 'lua', 'python', 'rust', 'javascript', 'typescript', 'vimdoc', 'vim', 'svelte', 'c_sharp' }, -- Autoinstall languages that are not installed auto_install = false, + -- Enable autotags and -rename + autotag = { + enable = true, + enable_autocmd = true, + }, -- Install languages synchronously (only applied to `ensure_installed`) sync_install = false, highlight = { enable = true },