system/home/progs/nvim/coc_settings.nix

25 lines
515 B
Nix
Raw Normal View History

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
};
};
# Rust
"rust-analyzer.server.path" = "rust-analyzer";
"rust-analyzer.updates.prompt" = false;
"rust-analyzer.updates.checkOnStartup" = false;
"rust-analyzer.checkOnSave.enable" = true;
"rust-analyzer.checkOnSave.command" = "clippy";
"rust-analyzer.cargo.autoreload" = true;
2022-06-23 10:45:58 +03:00
}