2022-06-23 10:45:58 +03:00
|
|
|
{
|
2022-08-26 16:55:21 +03:00
|
|
|
# General
|
|
|
|
coc.source = {
|
|
|
|
around.enable = true;
|
|
|
|
buffer.enable = true;
|
|
|
|
file.enable = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
# LSP
|
2022-06-23 10:45:58 +03:00
|
|
|
languageserver = {
|
|
|
|
nix = {
|
|
|
|
command = "rnix-lsp";
|
2022-08-29 15:40:41 +03:00
|
|
|
filetypes = [ "nix" ];
|
2022-06-23 10:45:58 +03:00
|
|
|
};
|
|
|
|
};
|
2022-07-05 14:47:56 +03:00
|
|
|
|
|
|
|
# Rust
|
2022-08-31 11:57:34 +03:00
|
|
|
"rust-analyzer.server.path" = "rust-analyzer";
|
|
|
|
"rust-analyzer.updates.prompt" = false;
|
|
|
|
"rust-analyzer.updates.checkOnStartup" = false;
|
|
|
|
"rust-analyzer.checkOnSave.enable" = true;
|
2022-07-05 14:47:56 +03:00
|
|
|
"rust-analyzer.checkOnSave.command" = "clippy";
|
2022-08-31 11:57:34 +03:00
|
|
|
"rust-analyzer.cargo.autoreload" = true;
|
2022-06-23 10:45:58 +03:00
|
|
|
}
|