Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: LSP renaming did not work in some cases #260

Merged

Conversation

mikavilpas
Copy link
Owner

There were some edge cases that caused issues when renaming files with LSP servers. Hopefully fix all of them by using the implementation that's also shared by neotree and nvim-tree:
https://github.com/antosha417/nvim-lsp-file-operations

Thanks @chaozwn for suggesting the fix!

Closes #80

This work was started in
#190 where the idea is to add a dependency on nvim-lsp-file-operations, but that PR has become slightly stalled for now.

This PR is a temporary fix to this stalling by simply embedding the new package inside yazi.nvim for now. When the issues in the PR have been resolved, the embedding can be removed.

There were some edge cases that caused issues when renaming files with
LSP servers. Hopefully fix all of them by using the implementation
that's also shared by neotree and nvim-tree:
https://github.com/antosha417/nvim-lsp-file-operations

Thanks @chaozwn for suggesting the fix!

Closes <#80>

This work was started in
#190 where the idea is to
add a dependency on nvim-lsp-file-operations, but that PR has become
slightly stalled for now.

This PR is a temporary fix to this stalling by simply embedding the new
package inside yazi.nvim for now. When the issues in the PR have been
resolved, the embedding can be removed.
@mikavilpas mikavilpas force-pushed the fix-lsp-file-operations-by-embedding-utility-package branch from ac990c1 to 5a0467c Compare July 25, 2024 16:39
@mikavilpas mikavilpas merged commit 6afe997 into main Jul 25, 2024
14 checks passed
@mikavilpas mikavilpas deleted the fix-lsp-file-operations-by-embedding-utility-package branch July 25, 2024 16:42
This was referenced Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

LSP renaming support is unreliable
1 participant