summaryrefslogtreecommitdiff
path: root/lua/nvim-treesitter/refactor/highlight_current_scope.lua
diff options
context:
space:
mode:
authorSteven Sojka <Steven.Sojka@tdameritrade.com>2020-08-21 07:49:06 -0500
committerSteven Sojka <steelsojka@gmail.com>2020-08-22 06:07:21 -0500
commit3fe8bbcf9c238c70ffd7a01982d98981b346984e (patch)
treec880c69babac5f45870bc06685d3df14b72760c7 /lua/nvim-treesitter/refactor/highlight_current_scope.lua
parentf3a515b3506f7ad6bd2ce88f0e150e32b93cb2dd (diff)
fix(modules): do not reattach if already attached
Diffstat (limited to 'lua/nvim-treesitter/refactor/highlight_current_scope.lua')
-rw-r--r--lua/nvim-treesitter/refactor/highlight_current_scope.lua2
1 files changed, 0 insertions, 2 deletions
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