fix(scope): parse treesitter injections. Closes #430

This commit is contained in:
Folke Lemaitre 2025-01-20 13:04:22 +01:00
parent 2abf208f2c
commit 985ada3c14
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -400,7 +400,7 @@ function TSScope:find(opts)
if not has_parser or parser == nil then
return
end
parser:parse()
parser:parse(true)
local line = vim.fn.nextnonblank(opts.pos[1])
line = line == 0 and vim.fn.prevnonblank(opts.pos[1]) or line