aznhe21 / actions-preview.nvim

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

Support refactor/rename #31

Open jan-xyz opened 5 months ago

jan-xyz commented 5 months ago

Have you thought about also supporting refactor/rename? It supports the same mechanism as code actions and it would be really nice to also have it!

aznhe21 commented 4 months ago

Good idea! The implementation doesn't seem particularly difficult either. However, it will take time to get the overall balance and UI right. Please wait a while.

pidgeon777 commented 4 months ago

I confirm it would be simply great.

It would give us a chance to preview the effect of the LSP rename/refactor action before actually applying it.

This mean for example:

and so on, according to the LSP capabilities.

Finally, I think that actually there are no plugins supporting such a feature, so yours would be the first one to implement it.

jan-xyz commented 4 months ago

@pidgeon777 I spend some time on a similar plugin, and I would be interested to get your feedback, as it also implements refactor/rename: https://github.com/jan-xyz/lsp-preview.nvim

pidgeon777 commented 4 months ago

I just gave a look at your plugin and it seems to be a great one. Congratulations for the work 👍.

I'll open specific issues in your repository to discuss about any improvements or found bugs.