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 | Avoid enabling disabled modules (even if they were disabled immediately) (diff) | |
| download | nvim-treesitter-23b45422188c88101e92b5227144783bdb782a76.tar nvim-treesitter-23b45422188c88101e92b5227144783bdb782a76.tar.gz nvim-treesitter-23b45422188c88101e92b5227144783bdb782a76.tar.bz2 nvim-treesitter-23b45422188c88101e92b5227144783bdb782a76.tar.lz nvim-treesitter-23b45422188c88101e92b5227144783bdb782a76.tar.xz nvim-treesitter-23b45422188c88101e92b5227144783bdb782a76.tar.zst nvim-treesitter-23b45422188c88101e92b5227144783bdb782a76.zip | |
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 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 |
