From 3fe8bbcf9c238c70ffd7a01982d98981b346984e Mon Sep 17 00:00:00 2001 From: Steven Sojka Date: Fri, 21 Aug 2020 07:49:06 -0500 Subject: fix(modules): do not reattach if already attached --- lua/nvim-treesitter/refactor/highlight_current_scope.lua | 2 -- 1 file changed, 2 deletions(-) (limited to 'lua/nvim-treesitter/refactor/highlight_current_scope.lua') diff --git a/lua/nvim-treesitter/refactor/highlight_current_scope.lua b/lua/nvim-treesitter/refactor/highlight_current_scope.lua index 8b785ef8..ef695f7b 100644 --- a/lua/nvim-treesitter/refactor/highlight_current_scope.lua +++ b/lua/nvim-treesitter/refactor/highlight_current_scope.lua @@ -27,8 +27,6 @@ function M.clear_highlights(bufnr) end function M.attach(bufnr) - local bufnr = bufnr or api.nvim_get_current_buf() - cmd(string.format('augroup NvimTreesitterCurrentScope_%d', bufnr)) cmd 'au!' -- luacheck: push ignore 631 -- cgit v1.2.3