mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 10:50:06 -04:00
Fix highlight of usages after merging highlight_current_scope
This commit is contained in:
parent
faa413287c
commit
7d8fc9c4cd
1 changed files with 1 additions and 1 deletions
|
|
@ -25,7 +25,7 @@ function M.highlight_usages(bufnr)
|
||||||
|
|
||||||
for _, usage_node in ipairs(usages) do
|
for _, usage_node in ipairs(usages) do
|
||||||
if usage_node ~= node_at_point then
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue