stevearc / dressing.nvim

Neovim plugin to improve the default vim.ui interfaces
MIT License
1.7k stars 32 forks source link

[Feature] Show custom "details"/diff window for vim.ui.select code actions #68

Closed fschoenm closed 1 year ago

fschoenm commented 1 year ago

Describe the bug

I'd like to achieve something similar to what nvim-code-action-menu can do. It shows a list of code actions but additionally it shows the corresponding code diff for the selected action (how the code would look after performing the action).

Is something like that possible with dressing.nvim? If not, maybe it can be extended by supplying a custom function to achieve a similar effect?

Screenshots See screenshot on nvim-code-action-menu.

stevearc commented 1 year ago

nvim-code-action-menu is actually doing quite a decent amount of work. I don't think it makes sense to try to replicate it within dressing.nvim, especially since I would have to either copy that entire plugin into this repo or recreate it from scratch. If nvim-code-action-menu has the feature you want, what is the issue with just using it for your code actions?