From fa23cf84f06ee9379e20311ca50d31ed92c65815 Mon Sep 17 00:00:00 2001 From: Victor Batarse <80638470+Alt-iOS@users.noreply.github.com> Date: Sun, 9 Jun 2024 01:13:13 -0600 Subject: [PATCH] trying to update autoclose --- lua/nvim-ts-autotag/config/plugin.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lua/nvim-ts-autotag/config/plugin.lua b/lua/nvim-ts-autotag/config/plugin.lua index a9dbb34..268cf57 100644 --- a/lua/nvim-ts-autotag/config/plugin.lua +++ b/lua/nvim-ts-autotag/config/plugin.lua @@ -99,6 +99,18 @@ local function setup_tag_configs() element_tag = { "element" }, skip_tag_pattern = { "quoted_attribute_value", "tag_end", "attribute", "value" }, })) + + TagConfigs:add(base_cfg:extend("rust",{ + filetypes = { 'rust' }, + start_tag_pattern = { 'open_tag' }, + start_name_tag_pattern = { 'node_identifier' }, + end_tag_pattern = { 'close_tag' }, + end_name_tag_pattern = { 'node_identifier' }, + close_tag_pattern = { 'close_tag' }, + close_name_tag_pattern = { 'close_tag', 'node_identifier' }, + element_tag = { 'element_node' }, + skip_tag_pattern = { 'close_tag', 'node_attribute', 'block' }, + })) end ---@class nvim-ts-autotag.Opts