This commit is contained in:
zztrieuzz 2023-04-20 20:26:02 +07:00
parent cac97f3b47
commit 59840f6f2f

View File

@ -552,11 +552,8 @@ M.attach = function(bufnr, lang)
if M.enable_rename == true then
bufnr = bufnr or vim.api.nvim_get_current_buf()
vim.api.nvim_create_autocmd('InsertLeave', {
group = vim.api.nvim_create_augroup('ts-autotag-rename', { clear = true }),
buffer = bufnr,
callback = function()
M.rename_tag()
end
callback = M.rename_tag
})
end
end