You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My main org file is 1026 lines (currently) and 11297 words. I noticed that when attempting to add third level headings on a particular task Neovim would completely freeze (it won't accept any terminal input; had to kill the process). Experimenting further with the file, I discovered that if I wait long enough, I get a message about redrawtime being exceeded (I don't have the specific error at hand, sorry). Further typing around the asterisk will produce another freeze.
Another thing to note, I tried this project's minimal_init.lua file. Doing so doesn't produce the error, but when I use that file (nvim -u ./minimal_init.lua todo.org), folding is disabled because foldexpr is set to 0 and none of the maps I would expect in orgmode appear to be working (I tried >> on a headline and C-<space on a checkbox, neither work). In the minimal init I supplied, foldexpr is set to nvim_treesitter#foldexpr() as one would expect.
This makes me think there's something going on with treesitter's fold function, but I'm not sure if that's the case or even how to debug it. I've tried disabling foldexpr with my minimal init file, and the problem persists.
The text was updated successfully, but these errors were encountered:
The problem appears because adding a * at that line actually switches ~500 lines to a drawer because some of the lines above and below are not properly parsed. That switch re-parses all the markup again and that causes the freeze.
Thanks for reporting. I'll let you know once this is fixed.
Describe the bug
My main org file is 1026 lines (currently) and 11297 words. I noticed that when attempting to add third level headings on a particular task Neovim would completely freeze (it won't accept any terminal input; had to
kill
the process). Experimenting further with the file, I discovered that if I wait long enough, I get a message aboutredrawtime
being exceeded (I don't have the specific error at hand, sorry). Further typing around the asterisk will produce another freeze.Steps to reproduce
520G
o
Expected behavior
Neovim shouldn't freeze when adding headlines.
Emacs functionality
No response
Minimal init.lua
Screenshots and recordings
No response
OS / Distro
Arch linux
Neovim version/commit
NVIM v0.10.0-dev-684e930
Additional context
Another thing to note, I tried this project's minimal_init.lua file. Doing so doesn't produce the error, but when I use that file (
nvim -u ./minimal_init.lua todo.org
), folding is disabled becausefoldexpr
is set to0
and none of the maps I would expect in orgmode appear to be working (I tried>>
on a headline andC-<space
on a checkbox, neither work). In the minimal init I supplied,foldexpr
is set tonvim_treesitter#foldexpr()
as one would expect.This makes me think there's something going on with treesitter's fold function, but I'm not sure if that's the case or even how to debug it. I've tried disabling
foldexpr
with my minimal init file, and the problem persists.The text was updated successfully, but these errors were encountered: