noib3 / nvim-oxi

:link: Rust bindings to all things Neovim
https://crates.io/crates/nvim-oxi
MIT License
871 stars 43 forks source link

Support for `vim.lsp` #47

Open noib3 opened 2 years ago

willothy commented 1 year ago

Seems like these would require bindings directly to lua by fetching globals, since a lot of the LSP/Diagnostics stuff is implemented in Lua. Would you be open to someone contributing that? That's the approach I was taking with nvim-utils, but honestly I'd rather contribute those features to oxi and archive utils as it's not getting much use and oxi provides a better (and faster) API.

noib3 commented 1 year ago

Seems like these would require bindings directly to lua by fetching globals, since a lot of the LSP/Diagnostics stuff is implemented in Lua.

Yes, that'd be the approach. This is a very rough sketch of such a binding that I wrote for vim.diagnostic.enable.

Would you be open to someone contributing that?

Yes, although I should mention that I don't really have the time to focus on oxi right now (and probably won't for a few months). What this means practically is that you might have to wait a few days to receive feedback on the relative PRs.

willothy commented 1 year ago

No worries! I don't actively need nvim LSP features in Rust so there's no rush, just think it would be nice to have and would be happy to contribute :)

noib3 commented 1 year ago

I should also mention that I was planning to rewrite Neovim's vim.lsp + nvim-lspconfig + lspsaga.nvim + any-lsp-related-stuff-that-should-be-builtin-instead-of-being-relegated-to-a-3rd-party-plugin in Rust as part of a new project, hopefully before EOY.

However, this is not to say that I wouldn't merge the Rust bindings to vim.lsp into oxi.

willothy commented 1 year ago

Cool! Would be nice to have those implemented in Rust.

poljar commented 3 months ago

I should also mention that I was planning to rewrite Neovim's vim.lsp + nvim-lspconfig + lspsaga.nvim + any-lsp-related-stuff-that-should-be-builtin-instead-of-being-relegated-to-a-3rd-party-plugin in Rust as part of a new project, hopefully before EOY.

Is there any more info about this effort now? Any repo we can follow or a dedicated issue?

noib3 commented 3 months ago

Is there any more info about this effort now?

Not at the moment. I still intend to write that code but I'm currently focusing on another project. I'll post here when I have an update.