fix(inspect): alwasy resolve full treesitter lang hl groups

This commit is contained in:
Folke Lemaitre 2023-02-28 12:12:08 +01:00
parent a87b52d328
commit 7574d58304
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040

View File

@ -69,7 +69,7 @@ function vim.inspect_pos(bufnr, row, col, filter)
-- treesitter
if filter.treesitter then
for _, capture in pairs(vim.treesitter.get_captures_at_pos(bufnr, row, col)) do
capture.hl_group = '@' .. capture.capture
capture.hl_group = '@' .. capture.capture .. '.' .. capture.lang
table.insert(results.treesitter, resolve_hl(capture))
end
end