mikavilpas / yazi.nvim

A Neovim Plugin for the yazi terminal file manager
MIT License
243 stars 7 forks source link

Request lsp help when renaming and deleting files #41

Closed mikavilpas closed 2 months ago

mikavilpas commented 2 months ago

feat(lsp): apply changes to related files when a file is renamed

Previously the language server could easily get out of sync when a file was renamed in yazi. The language server would e.g. have import statements that referenced the old file name.

This feature only applies when a language server is running and the server has support for renaming. What now happens is:

I tested this in a typescript project as well as two rust projects. Everything worked nicely.


the same thing for the delete operation, except I don't know how to test that at this time.