diff options
| author | Steven Sojka <steelsojka@gmail.com> | 2020-08-12 07:38:15 -0500 |
|---|---|---|
| committer | Steven Sojka <Steven.Sojka@tdameritrade.com> | 2020-08-13 07:43:09 -0500 |
| commit | 282e33ad9c96a44a092ab8a356bba7626c838b68 (patch) | |
| tree | d5598bcfc0f58b4c5b3909c2f7ad49111d5c7b2d /lua/nvim-treesitter/refactor/highlight_definitions.lua | |
| parent | ba3167a1a4fdc9028eb1f088e823ac1dceb202f4 (diff) | |
fix(definitions): optimize and fix definition highlighting
Diffstat (limited to 'lua/nvim-treesitter/refactor/highlight_definitions.lua')
| -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 |
