Skip to content

Activating hint floating window crashes treesitter #42

@rperryng

Description

@rperryng

Hey there, I was hoping to bring some attention to an existing issue in the original repo:

It seems that activating a hydra with config.hint.type = 'window' seems to break treesitter integration somehow.

Setting any other kind of config.hint.type window luckily avoids the problem.

I can't seem to find any related error logs (via :messages or :LspInfo / :LspLog). The behaviour I see is:

  1. open buffer (triggering LSP to start / attach to buffer)
  2. activate Hydra
  3. exit Hydra
    a. as I make edits, all my tree-sitter based plugins no longer seem to work (syntax highlighting on edited tokens breaks, and diagnostics etc don't pop up)
  4. Open a new file
    a. The opened file has no syntax highlighting
    b. :LspInfo shows the old language server still running, but does not attach to the new buffer

I apologize for the lack of details, happy to provide a minimal reproducible example if needed. I will also try to dig through the code when I have some more time to try and understand the root cause. Thanks.

-- lazy-lock.json
{
  ...,
  "hydra.nvim": { "branch": "master", "commit": "3ced42c0b6a6c85583ff0f221635a7f4c1ab0dd0" },
  "nvim-treesitter": { "branch": "master", "commit": "d7353a6b72008b38aa873ace49aa97bea257941b" },
  "nvim-treesitter-endwise": { "branch": "master", "commit": "8b34305ffc28bd75a22f5a0a9928ee726a85c9a6" },
  "nvim-treesitter-textobjects": { "branch": "master", "commit": "48128953949b51235ccada535f021a505fdaf3df" },
}
# :version
NVIM v0.10.0
Build type: Release
LuaJIT 2.1.1713484068

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions