I was trying to set up lsp with rust_analyzer
in NvChad. I tried to set up null-ls with rustfmt but then I found this line in the note.
Source specific Configuration · jose-elias-alvarez/null-ls.nvim Wiki (github.com)
Note: If you are using
rust-analyzer
, format withrust-analyzer
. It reads edition fromCargo.toml
.
Does this mean I can setup rust-analyzer
using lspconfig to format my code directly without the use of null-ls
’s rustfmt
? If yes then how to set it up? I am new to using neovim. Thank you for any help.