summaryrefslogtreecommitdiff
path: root/lua/nvim-treesitter/refactor/highlight_definitions.lua
diff options
context:
space:
mode:
authorSteven Sojka <steelsojka@gmail.com>2020-08-12 07:38:15 -0500
committerSteven Sojka <Steven.Sojka@tdameritrade.com>2020-08-13 07:43:09 -0500
commit282e33ad9c96a44a092ab8a356bba7626c838b68 (patch)
treed5598bcfc0f58b4c5b3909c2f7ad49111d5c7b2d /lua/nvim-treesitter/refactor/highlight_definitions.lua
parentba3167a1a4fdc9028eb1f088e823ac1dceb202f4 (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.lua2
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