mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
fix!: backport ac9e755 from main
ac9e755Co-authored-by: Pham Huy Hoang <hoangtun0810@gmail.com> Closes: neovim/neovim#25088
This commit is contained in:
parent
991ae3da02
commit
15d327fe63
1 changed files with 1 additions and 1 deletions
|
|
@ -124,7 +124,7 @@ function M.get_indent(lnum)
|
|||
-- some languages like Python will actually have worse results when re-parsing at opened new line
|
||||
if not M.avoid_force_reparsing[root_lang] then
|
||||
-- Reparse in case we got triggered by ":h indentkeys"
|
||||
parser:parse()
|
||||
parser:parse { vim.fn.line "w0" - 1, vim.fn.line "w$" - 1 }
|
||||
end
|
||||
|
||||
-- Get language tree with smallest range around node that's not a comment parser
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue