-
Notifications
You must be signed in to change notification settings - Fork 48
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
Issues related with Rust Format #9
Comments
I'm still trying to figure it out. It says that the neovim has built-in rustfmt function. But I fail to use that command too. You can import the rust.vim plugins back for now. I will update document after I find the correct usage. |
So the current workaround is to use the built-in LSP format function: This may be the best workaround since it will call different formatter based on the filetype. It is now working on Rust, Golang. I will manage to integrate it with lua format. I will replace it with gf in the future release. This is because I've set most the lsp keymap to start with key g. Besides, you can map this key to |
Format option can be found here: https://microsoft.github.io/language-server-protocol/specifications/specification-3-17/#formattingOptions |
Thanks |
Hi,before v3.13.0. I can use
:RustFmt
format code. Now if i use:RustFmt
it just print origin code in console. I try to addvim.g.rustfmt_autosave=1
in lua but not effected. I don't know it may be rust.vim plugin moved or other reasons. So how to use rustfmt now.The text was updated successfully, but these errors were encountered: