mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-05 11:18:26 +00:00
fix(scope): parse treesitter injections. Closes #430
This commit is contained in:
parent
2abf208f2c
commit
985ada3c14
1 changed files with 1 additions and 1 deletions
|
@ -400,7 +400,7 @@ function TSScope:find(opts)
|
||||||
if not has_parser or parser == nil then
|
if not has_parser or parser == nil then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
parser:parse()
|
parser:parse(true)
|
||||||
|
|
||||||
local line = vim.fn.nextnonblank(opts.pos[1])
|
local line = vim.fn.nextnonblank(opts.pos[1])
|
||||||
line = line == 0 and vim.fn.prevnonblank(opts.pos[1]) or line
|
line = line == 0 and vim.fn.prevnonblank(opts.pos[1]) or line
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue