diff options
| author | Steven Sojka <steelsojka@users.noreply.github.com> | 2020-08-14 06:42:33 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-14 06:42:33 -0500 |
| commit | 52420544ff5b8d19837f7e5695e3b37aed9add75 (patch) | |
| tree | 11286f402ffc122c9dd17b71cab52282f09f1eb4 /lua/nvim-treesitter/refactor | |
| parent | 1846d92ec62c5ac6403387b64a8ee3f97a59b765 (diff) | |
| parent | 282e33ad9c96a44a092ab8a356bba7626c838b68 (diff) | |
Merge pull request #284 from steelsojka/fix-usages
fix(definitions): optimize and fix definition highlighting
Diffstat (limited to 'lua/nvim-treesitter/refactor')
| -rw-r--r-- | lua/nvim-treesitter/refactor/highlight_definitions.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/nvim-treesitter/refactor/highlight_definitions.lua b/lua/nvim-treesitter/refactor/highlight_definitions.lua index 71081442..8a75980d 100644 --- a/lua/nvim-treesitter/refactor/highlight_definitions.lua +++ b/lua/nvim-treesitter/refactor/highlight_definitions.lua @@ -21,7 +21,7 @@ function M.highlight_usages(bufnr) end local def_node, scope = locals.find_definition(node_at_point, bufnr) - local usages = locals.find_usages(node_at_point, scope) + local usages = locals.find_usages(def_node, scope, bufnr) for _, usage_node in ipairs(usages) do if usage_node ~= node_at_point then |
