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 committed Sep 9, 2024
1 parent 49c63fb commit a11fba0
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 @@ -122,7 +122,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 a11fba0

Please sign in to comment.