Skip to content

Instantly share code, notes, and snippets.

@mkohlhaas
Last active July 26, 2026 14:07
Show Gist options
  • Select an option

  • Save mkohlhaas/dc1620945a7c5a2e8ab9430dabc22019 to your computer and use it in GitHub Desktop.

Select an option

Save mkohlhaas/dc1620945a7c5a2e8ab9430dabc22019 to your computer and use it in GitHub Desktop.
rust-analyzer & neovim
...
config = {
rust_analyzer = {
settings = {
["rust-analyzer"] = {
-- diagnostics = {
-- enable = true,
-- },
checkOnSave = false,
cargo = {
extraEnv = { CARGO_PROFILE_RUST_ANALYZER_INHERITS = "dev" },
extraArgs = { "--profile", "rust-analyzer" },
},
check = { command = "clippy", allTargets = false, workspace = false },
lens = {
enable = false,
},
},
},
},
},
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment