Skip to content

feature: fire an event when a NES is available #19

@rachartier

Description

@rachartier

Did you check the docs?

  • I have read all the sidekick.nvim docs

Is your feature request related to a problem? Please describe.

Hello,
Thank you for this plugin.

In my plugin, https://github.com/rachartier/tiny-inline-diagnostic.nvim, when a NES is displayed, there are some visual "bugs":

Image

instead of:

Image

I do not think it is easy to resolve this.

Describe the solution you'd like

I was wondering if it is possible to fire an event when a NES is found and displayed (or cancelled), so that users can disable whatever they want if needed.

In my case, I could add an autocmd to this event and disable diagnostics display.

What do you think?

Describe alternatives you've considered

Using

vim.lsp.config("copilot", {
  handlers = {
    didChangeStatus = function(err, res, ctx)
      if err then
        return
      end
      vim.print(res)
    end,
  },
})

But I think it will break your implementation

EDIT: tested overriding didChangeStatus, it does not work

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions