Skip to content

Commit

Permalink
Use find for @scope to find @local.scope
Browse files Browse the repository at this point in the history
  • Loading branch information
theHamsta committed Dec 28, 2023
1 parent cf290f8 commit 4ae5ab7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/nvim-dap-virtual-text/virtual_text.lua
Expand Up @@ -113,7 +113,7 @@ function M.set_virtual_text(stackframe, options, clear)
for _, match, _ in query:iter_matches(tree:root(), buf, 0, -1) do
for id, node in pairs(match) do
local cap_id = query.captures[id]
if cap_id == 'scope' then
if cap_id:find('scope', 1, true) then
table.insert(scope_nodes, node)
elseif cap_id:find('definition', 1, true) then
table.insert(definition_nodes, node)
Expand Down

0 comments on commit 4ae5ab7

Please sign in to comment.