Skip to content

only consider code actions for diagnostics under cursor - issue and PR in neovim core that is relevant here  #40

Description

@IndianBoy42

neovim/neovim#25747

I see quite a lot of duplication of the vim.lsp.buf.code_actions code here, I wonder if there is a better architecture that would remove the need for that.

The docs say the real customization point is vim.ui.select (https://github.com/neovim/neovim/blob/2980dcd33c9028a2aaad56494e00786fdb439e2f/runtime/lua/vim/lsp/buf.lua#L579), perhaps there is a way to override that that doesn't clobber the user config too badly. vim.ui.select is called with kind = "codeaction" so a wrapper could be made that does the preview for codeactions and defers to the users vim.ui.select for the rest

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions