-
-
Notifications
You must be signed in to change notification settings - Fork 158
Performance issues with treesitter when there is entry with :PROPERTIES: #521
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
And it throws a lot of errors when I try to use it without TS. Very frustrating :( (in my file, lags can be 2-3 seconds) |
Workaround: insert space at the same time as asterisks norm = { noremap = true, silent = true }
vim.api.nvim_set_keymap('n', 'c1', 'i*<space>', norm)
vim.api.nvim_set_keymap('n', 'c2', 'i**<space>', norm)
vim.api.nvim_set_keymap('n', 'c3', 'i***<space>', norm)
vim.api.nvim_set_keymap('n', 'c4', 'i****<space>', norm) This works instantly. However, it's key that the space is inserted too. Otherwise, the same bug hits. |
I can confirm this. This looks like a treesitter issue to me. I could narrow it down to
(pipe represents the cursor) Inserting the edit: personally this never happened to me because when I hit |
The tree built by the treesitter also breaks often. I couldn't reproduce it yet, except when you type a few asterisks on a few line but not a space. But I feel like sometimes, headings without contents are interpreted compelteley wrong. E. g. folding in this text normally works as expected. Expanded:
Collapsed:
Sometimes though the collapsed looks like this:
|
Glad I'm not the only one having this issue. I have org files that previously worked fine not folding at all until I edit content underneath a heading, then it folds on itself. |
@WhiteBlackGoose @rybaz let's keep this issue on topic and move discussions about folding here |
Similar issue was reported here #625. It should be resolved on latest master + |
Describe the bug
Adding a new entry under first level header gets incredibly slow (up to 1s lag). E. g.
In place of type *. It will lag for 500ms or so.
When I do it, it tries to redraw the whole thing on the first asterisk inserted. It does it wrong, because on the first asterisk it redraws everything into the color of the first level header. Especially noticeable when everything is expanded.
Steps to reproduce
Expected behavior
Adding entries should be instant
Emacs functionality
No response
Minimal init.lua
Used the provided
minimal_init.lua
(no my configuration). linkScreenshots and recordings
No response
OS / Distro
NixOS
Neovim version/commit
0.9-dev 5c9bf0ea74aa9297227242f17058a9f0c4c0c115
Additional context
Thank you, this is an amazing plugin
The text was updated successfully, but these errors were encountered: