diff options
| author | Steven Sojka <steelsojka@users.noreply.github.com> | 2020-08-22 09:10:28 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-22 09:10:28 -0500 |
| commit | 3b2cb65d4cfc6e86026f8cc6bf63c180d271ebe3 (patch) | |
| tree | 462836d0e88a0672ccf538d81ddf80011493d56b /lua/nvim-treesitter/refactor/highlight_current_scope.lua | |
| parent | 53fda90be0ae56b6b8b47af1f8a86733447532c5 (diff) | |
| parent | 3fe8bbcf9c238c70ffd7a01982d98981b346984e (diff) | |
Merge pull request #330 from steelsojka/fix-do-not-reattach
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.lua | 2 |
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 |
