Skip to content
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

Completion freezes on # in specific situations #1619

Open
2 tasks done
benlubas opened this issue Dec 16, 2024 · 0 comments
Open
2 tasks done

Completion freezes on # in specific situations #1619

benlubas opened this issue Dec 16, 2024 · 0 comments
Labels
bug Issues related to bugs. Please attach a severity, a priority and category with this label.

Comments

@benlubas
Copy link
Contributor

Prerequisites

  • I am using the latest stable release of Neovim
  • I am using the latest version of the plugin

Neovim Version

0.10.2

Neorg setup

require("neorg").setup()

Actual behavior

Neovim freezes after typing #, or in some configurations, only after typing a char after the #

Expected behavior

No freeze, completion continues as normal

Steps to reproduce

  1. default config, or just enable the completion module. This happens with interim ls and native cmp completion, have not tested others.
  2. Paste this exact content into a norg file
  3. Go#a
  4. witness the freeze

* neorg-query
  - ( ) any
** TODO:

*** (x) a
**** ( ) b

Potentially conflicting plugins

none that i can think of, interim ls maybe, but I've disabled it and it still happens

Other information

You can play around the the file contents. Removing blank lines will cause the issue to stop for example.

Somehow, I think this issue is related to the reason that I can't write a TS query to pull todo items from a level two heading consistently. It feels the same. I was never able to figure out that issue, it seems like it's just a TS parser bug.

Help

Yes

Implementation help

I might look into this if it starts to bother me. Currently the configuration is so rare, and I rarely ever type # without something already below it that I'm just making this for tracking purposes.

@benlubas benlubas added the bug Issues related to bugs. Please attach a severity, a priority and category with this label. label Dec 16, 2024
@github-project-automation github-project-automation bot moved this to added-updated-reopened in sorting neorg issue tracker Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues related to bugs. Please attach a severity, a priority and category with this label.
Projects
None yet
Development

No branches or pull requests

1 participant