aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/nvim-treesitter/refactor/highlight_current_scope.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/nvim-treesitter/refactor/highlight_current_scope.lua b/lua/nvim-treesitter/refactor/highlight_current_scope.lua
index ef695f7b9..e45286152 100644
--- a/lua/nvim-treesitter/refactor/highlight_current_scope.lua
+++ b/lua/nvim-treesitter/refactor/highlight_current_scope.lua
@@ -37,8 +37,8 @@ function M.attach(bufnr)
end
function M.detach(bufnr)
- M.clear_usage_highlights(bufnr)
- cmd(string.format('autocmd! NvimTreesitterCurrentScope_%d CursorHold', bufnr))
+ M.clear_highlights(bufnr)
+ cmd(string.format('autocmd! NvimTreesitterCurrentScope_%d CursorMoved', bufnr))
cmd(string.format('autocmd! NvimTreesitterCurrentScope_%d BufLeave', bufnr))
end