aznhe21 / actions-preview.nvim

Fully customizable previewer for LSP code actions.
GNU General Public License v3.0
365 stars 9 forks source link

Not displaying all code actions. #16

Closed fazibear closed 6 months ago

fazibear commented 10 months ago

I started using this plugin with nvim-lightbulb. Figure out that sometimes lightbulb appears, but actions-preview showing "No Actions".

What I found:

[Code Actions]
i   No code action support: copilot
i With code action support: lua_ls

lua_ls
1. Disable diagnostics in the workspace (undefined-global). quickfix
2. Disable diagnostics on this line (undefined-global). quickfix
3. Disable diagnostics in this file (undefined-global). quickfix

The question is why builtin function don't show all actions while external plugin can? Just guessing but, this plugin using vim.lsp.buf.code_action() to fetch actions right?

Thanks for help.

aznhe21 commented 8 months ago

I apologize for the delayed response.

This is an interesting issue. While this plugin does not use vim.lsp.buf.code_action(), but it does mimic its implementation to some extent. However, I cannot reproduce this issue in my environment. Could you provide the code and configuration that reproduce the problem?

aznhe21 commented 6 months ago

I will close this issue since there has been no activity.