diff options
| author | Steven Sojka <Steven.Sojka@tdameritrade.com> | 2020-08-21 07:49:06 -0500 |
|---|---|---|
| committer | Steven Sojka <steelsojka@gmail.com> | 2020-08-22 06:07:21 -0500 |
| commit | 3fe8bbcf9c238c70ffd7a01982d98981b346984e (patch) | |
| tree | c880c69babac5f45870bc06685d3df14b72760c7 /lua/nvim-treesitter/refactor/highlight_definitions.lua | |
| parent | f3a515b3506f7ad6bd2ce88f0e150e32b93cb2dd (diff) | |
fix(modules): do not reattach if already attached
Diffstat (limited to 'lua/nvim-treesitter/refactor/highlight_definitions.lua')
| -rw-r--r-- | lua/nvim-treesitter/refactor/highlight_definitions.lua | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lua/nvim-treesitter/refactor/highlight_definitions.lua b/lua/nvim-treesitter/refactor/highlight_definitions.lua index 8a75980d..d430d38a 100644 --- a/lua/nvim-treesitter/refactor/highlight_definitions.lua +++ b/lua/nvim-treesitter/refactor/highlight_definitions.lua @@ -39,8 +39,6 @@ function M.clear_usage_highlights(bufnr) end function M.attach(bufnr) - local bufnr = bufnr or api.nvim_get_current_buf() - cmd(string.format('augroup NvimTreesitterUsages_%d', bufnr)) cmd 'au!' -- luacheck: push ignore 631 |
