Skip to content

Commit

Permalink
fix(treesitter): parse injections (#571)
Browse files Browse the repository at this point in the history
  • Loading branch information
MariaSolOs committed Aug 26, 2023
1 parent 894db25 commit 3ec6e42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/noice/text/treesitter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function M.highlight(buf, ns, range, lang)
local parser = LanguageTree.new(buf, lang, opts)

parser:set_included_regions({ { range } })
parser:parse()
parser:parse(true)

parser:for_each_tree(function(tstree, tree)
if not tstree then
Expand Down

0 comments on commit 3ec6e42

Please sign in to comment.