Fix highlight of usages after merging highlight_current_scope

This commit is contained in:
Stephan Seitz 2020-07-14 15:16:00 +02:00 committed by Thomas Vigouroux
parent faa413287c
commit 7d8fc9c4cd

View file

@ -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