summaryrefslogtreecommitdiff
path: root/lua/nvim-treesitter/refactor/highlight_definitions.lua
diff options
context:
space:
mode:
authorStephan Seitz <stephan.seitz@fau.de>2020-07-14 15:16:00 +0200
committerThomas Vigouroux <39092278+vigoux@users.noreply.github.com>2020-07-14 15:20:34 +0200
commit7d8fc9c4cd0b61808b250a30ff000c20af4098c7 (patch)
tree75f6aea4d788baf940fa20e34dc1246d12e257ad /lua/nvim-treesitter/refactor/highlight_definitions.lua
parentfaa413287ce4389767623fd01d73b76536ae810a (diff)
Fix highlight of usages after merging highlight_current_scope
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 3b75cd84..d1eb4712 100644
--- a/lua/nvim-treesitter/refactor/highlight_definitions.lua
+++ b/lua/nvim-treesitter/refactor/highlight_definitions.lua
@@ -25,7 +25,7 @@ function M.highlight_usages(bufnr)
for _, usage_node in ipairs(usages) do
if usage_node ~= node_at_point then
- ts_utils.highlight_node(node_at_point, bufnr, usage_namespace, 'TSDefinitionUsage')
+ ts_utils.highlight_node(usage_node, bufnr, usage_namespace, 'TSDefinitionUsage')
end
end