0 min
0

Setup rust for neovim

A note about how to setup rust for neovim

  • #neovim
  • #rust
By Baiyuechu@github/baiyuechuz

Use plugin for rust in neovim

luaLUA
1{
2  "mrcjkb/rustaceanvim",
3  version = "^6", -- Recommended
4  filetypes = { "rust" }
5}

Install lsp and formatter

terminal
rustup component add rust-analyzer
rustup component add rustfmt
NOTE: remember set PATH in `.zshrc` or `.bashrc`

Test lsp and formatter

terminal
mkdir -p ~/test/rust
cd ~/test/rust
cargo init
  • Open file `main.rs` and write code.

References

Join Baiyuechu Newsletter!

Get notified when I publish new articles, tutorials, and project updates. Subscribe for insights and actionable content.