diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2020-08-31 18:31:15 +0200 |
|---|---|---|
| committer | Thomas Vigouroux <39092278+vigoux@users.noreply.github.com> | 2020-08-31 21:34:57 +0200 |
| commit | 23b45422188c88101e92b5227144783bdb782a76 (patch) | |
| tree | 24a1a0c213a91402b7639ca3cc06d872f08c853c /lua | |
| parent | 08f1a8561fcaad08930994c594d4f43944d07a26 (diff) | |
fix(highlight_current_scope): Ensure that detach is a inverse of attach
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/nvim-treesitter/refactor/highlight_current_scope.lua | 4 |
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 ef695f7b..e4528615 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 |
