白月初

Home
About
Projects
Blog

Loading.

Loading.

On this page

  • Use plugin for rust in neovim
  • Install lsp and formatter
  • Test lsp and formatter
baiyuechu.dev

Setup rust for neovim
neovimrust

A note about how to setup rust for neovim

2026-01-23By Baiyuechu
...
Your browser does not support the audio element.

Use plugin for rust in neovim

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

Install lsp and formatter

bash
1rustup component add rust-analyzer
2rustup component add rustfmt

NOTE: remember set PATH in .zshrc or .bashrc

Test lsp and formatter

bash
1mkdir -p ~/test/rust
2cd ~/test/rust
3cargo init
  • Open file main.rs and write code.

DETAILS: Read here

Join Baiyuechu Newsletter!

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

Baiyuechu

I am a software engineer with a passion for building web applications and mobile apps. I am a quick learner and I am always looking to improve my skills.

© 2026 Baiyuechu

General

  • Home
  • About
  • Projects
  • Blog
  • Toolbox
  • Stats

Specifics

  • Connections
  • Gallery
  • Community

Extra

  • Links
  • Changelog

baiyuechu