/neovim-rust

Sample neovim and vim configurations for Rust development

Primary LanguageVim Script

neovim-rust

Colection of Vim and Neovim configurations to kickstart your Rust development experience.

All vim configurations should work under neovim. Neovim configurations will not work under vim.

Blog post: https://sharksforarms.dev/posts/neovim-rust/

Examples

Each example provides Prerequisites and Steps as comments at the top of each file.

In order of recommendation,

Example Description Stability Syntax Navigation Autocompletion Inlay Hints Diagnostics
neovim-init-lsp-cmp-rust-tools Neovim configuration using built-in LSP nvim-cmp and rust-tools.nvim 🚧 ✔️ ✔️ ✔️ ✔️ ✔️
neovim-init-lsp Neovim configuration using built-in LSP and nvim-cmp 🚧 ✔️ ✔️ ✔️ ✔️ ✔️
vim-vimrc-coc Autocompletion with Conquer of Completion ✔️ ✔️ ✔️ ✔️ ✔️
vim-vimrc Simple vim configuration ✔️ ✔️ ✔️

Try for yourself!

Each example can be tested with the provided Dockerfile! This allows you to test a configuration without changing your system. The Dockerfile provides all the dependencies required to run each setup.

See the run.sh script for details. This will start a docker instance and run PlugInstall.

For example, ./run.sh ./neovim-init-lsp-cmp-rust-tools.vim to test this configuration.

Once in the container, navigate to ~/test_app to try the configuration on some rust code.