trying to update autoclose

This commit is contained in:
Victor Batarse 2024-06-09 01:13:13 -06:00 committed by GitHub
parent d209ec3497
commit fa23cf84f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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