weilbith / nvim-code-action-menu

Pop-up menu for code actions to show meta-information and diff preview
MIT License
577 stars 19 forks source link

Allow users to pass in custom diagnostics for the code action request #53

Closed ThreeFx closed 2 years ago

ThreeFx commented 2 years ago

This mirrors the functionality provided by the nvim.lsp.buf.code_action() function, and is useful for providing non-local or external diagnostic information to the textDocument/codeAction request.

I've also merged the use_range parameter into the options struct, it seemed more lua-y that way.

Let me know what you think!