feat: vim.inspect_pos, vim.show_pos, :Inspect

This commit is contained in:
Folke Lemaitre
2022-12-14 10:46:54 +01:00
parent 04da043244
commit ef91146efc
13 changed files with 385 additions and 11 deletions

View File

@@ -240,7 +240,7 @@ function M.get_captures_at_pos(bufnr, row, col)
if M.is_in_node_range(node, row, col) then
local c = q._query.captures[capture] -- name of the capture in the query
if c ~= nil then
table.insert(matches, { capture = c, metadata = metadata })
table.insert(matches, { capture = c, metadata = metadata, lang = tree:lang() })
end
end
end