feat(neovim): rustlsp

This commit is contained in:
Ryan Yin
2024-09-19 08:21:56 +08:00
parent 94e04bfbcc
commit 3c4de12ebf
2 changed files with 13 additions and 0 deletions

View File

@@ -101,6 +101,18 @@ return {
filetypes = { "scheme", "scm" },
single_file_support = true,
},
rust_analyzer = {
settings = {
-- Make the rust-analyzer use its own profile,
-- so you can run cargo build without that being blocked while rust-analyzer runs.
["rust-analyzer"] = {
cargo = {
extraEnv = { CARGO_PROFILE_RUST_ANALYZER_INHERITS = "dev" },
extraArgs = { "--profile", "rust-analyzer" },
},
},
},
},
},
-- customize how language servers are attached
handlers = {