-
-
Notifications
You must be signed in to change notification settings - Fork 83
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
Any Rust Support? #250
Comments
No! But its not to hard at this point. The hard parts are types which is why I am a bit hesitant. LSP Integration is back on the table for me so that I can create type annotations as well. |
Fantastic! Would love rust, especially the extract functionality |
Rust Analyzer offers Eg:
From the Rust Analyzer manual: Before:
After:
Note: Cursor position or selection is signified by ┃ character. |
@Mathijs-Bakker thank you, this looks great! however this did not work for me on that sample, it only offers me refactorings such as change the format of the 2 to hex, or change let to if let. i have the latest version of rust-analyzer. 2022-09-19 lspconfig.rust_analyzer.setup {} to get this to work? thank you! |
I am using rust-tools.nvim For the setup options:
I have a default setup. But for the rust-analyzer settings I have this:
The whole setup: Hope you get it to work! |
btw, i am likely to start making rust / ts better. so,... its on my radar. its just open source is so... its so open source. |
@emmanueltouzery @ThePrimeagen How it's working now (without refactor plugin): Extract into Function |
Im looking for a refactoring plugin in neovim,
but when i check the language supported
no rust yet, hopefully it will be added
anyway thanks for creating this nvim plugin
:)
The text was updated successfully, but these errors were encountered: