From 59840f6f2f92faae55456f5fdec23e597ed12a0e Mon Sep 17 00:00:00 2001 From: zztrieuzz Date: Thu, 20 Apr 2023 20:26:02 +0700 Subject: [PATCH] fix #103 --- lua/nvim-ts-autotag/internal.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lua/nvim-ts-autotag/internal.lua b/lua/nvim-ts-autotag/internal.lua index be08929..f4b8a73 100644 --- a/lua/nvim-ts-autotag/internal.lua +++ b/lua/nvim-ts-autotag/internal.lua @@ -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