Skip to content

[nvim] native lsp causes phpactor to add message to the messages log every time a token is navigated over #2967

Open

Description

@TRPB

In neovim after switching to using vim.lsp instead of lspconfig, when phpactor is enabled as I navigate around a php file, phpactor, or the lsp, prints a message to the messages log in :messages with the name of each token. When using something like noice.nvim that prints these messages, the messages keep appearing when navigating around the document.

This isn't an issue when going back to lspconfig.

Those messages keep appearing as I navigate around. Is there any way to avoid this behaviour and prevent the messages appearing?

Image

Activity

  1. dantleech commented on Nov 25, 2025

    @dantleech
    Collaborator

    That looks like markdown - and it looks like the hover response.

    I'd guess you have something configured in regards to hover?

  2. przepompownia commented on Nov 25, 2025

    @przepompownia
    Contributor

    It sounds rather like Nvim or even Noice specific question. Try to check it without Noice.

    Nvim 0.12 is scheduled for release in about a month. While unstable (f.e. as a nightly build), you can try vim._extui which will be a built-in way of handling some UI events (especially messages), intended to replace the old way. Noice started over three years ago to do similar thing and not only (e.g. custom LSP handlers, which can be relevant in this question).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions