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

Implement all LSP workspace file operations #261

Closed
wants to merge 3 commits into from

Conversation

mehalter
Copy link
Contributor

@mehalter mehalter commented Dec 21, 2023

This generalizes the current lsp_helpers.lua file to support all of the workspace file operations in the LSP spec. This could supercede #260 (since it also closes #259) or it could be merged afterwards.

Let me know what you think of this implementation and if you have any ideas/improvements! I focused mainly on decreasing duplicate code while implementing all of these very similar operations while maintaining "type safety" with lua language server.

I also noticed that you have opened a PR to add this sort of functionality directly into Neovim (neovim/neovim#26516) which is amazing! This could still be useful if we want to use that API when it comes out but support backwards compatibility for some amount of time.

@stevearc
Copy link
Owner

Hey, thanks for putting together this PR! As you noticed, I did attempt to add this logic into Neovim core, but it was decided that it doesn't make sense to merge it right now. They want to wait for something in core that would actually make use of it.

I already had a WIP branch that was making use of that PR, so I just pulled those changes into oil itself and put the whole change up as #264. Let me know if that works for you!

@mehalter
Copy link
Contributor Author

Yeah that sounds great! Super appreciate all of your dedication to your plugins and Neovim 🤗

Hope you have a happy holiday season!

@mehalter mehalter closed this Dec 23, 2023
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.

feature request: add LSP handler for didRenameFiles
2 participants