Skip to content

Commit

Permalink
fix: set all = true for backwards compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
b0o authored and theHamsta committed Sep 10, 2024
1 parent 22c0299 commit bba43ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/nvim-dap-virtual-text/virtual_text.lua
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ function M.set_virtual_text(stackframe, options)
parser:for_each_tree(function(tree, ltree)
local query = get_query(ltree:lang(), 'locals')
if query then
for _, match, _ in query:iter_matches(tree:root(), buf, 0, -1) do
for _, match, _ in query:iter_matches(tree:root(), buf, 0, -1, { all = true }) do
for id, nodes in pairs(match) do
for _, node in pairs(nodes) do
local cap_id = query.captures[id]
Expand Down

0 comments on commit bba43ba

Please sign in to comment.