Skip to content

Completion freezes on # in specific situations #1619

Open
@benlubas

Description

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.

Metadata

Assignees

No one assigned

    Labels

    bugIssues related to bugs. Please attach a severity, a priority and category with this label.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions