mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-07-11 15:12:40 +02:00
feat(neovim): rustlsp
This commit is contained in:
@@ -101,6 +101,18 @@ return {
|
|||||||
filetypes = { "scheme", "scm" },
|
filetypes = { "scheme", "scm" },
|
||||||
single_file_support = true,
|
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
|
-- customize how language servers are attached
|
||||||
handlers = {
|
handlers = {
|
||||||
|
|||||||
@@ -64,6 +64,7 @@
|
|||||||
# llvmPackages.clang-unwrapped
|
# llvmPackages.clang-unwrapped
|
||||||
clang-tools
|
clang-tools
|
||||||
lldb
|
lldb
|
||||||
|
vscode-extensions.vadimcn.vscode-lldb.adapter # codelldb - debugger
|
||||||
|
|
||||||
#-- python
|
#-- python
|
||||||
pyright # python language server
|
pyright # python language server
|
||||||
|
|||||||
Reference in New Issue
Block a user