home/nvim: add more configs for coc-rust-analyzer

This commit is contained in:
Dmitriy Pleshevskiy 2022-08-31 11:57:34 +03:00
parent aa9aaf0e7c
commit 1619c737a9
Signed by: pleshevskiy
GPG key ID: 1B59187B161C0215
3 changed files with 9 additions and 3 deletions

View file

@ -31,8 +31,8 @@ in
fd # a simple, fast and user-friendly alternative to find
bat # a cat clone with syntax highlighting and git integration
# formatters
nixpkgs-fmt # for nix
# nix
nixpkgs-fmt
# browser
librewolf # a fork of firefox, focused on privacy, security and freedom

View file

@ -15,5 +15,10 @@
};
# 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;
}

View file

@ -38,6 +38,7 @@ let
additionalPackages = lspPackages ++ fzfToolsPackages;
vimConfig = builtins.readFile ./config.vim;
cocConfig = import ./coc_settings.nix;
in
{
options.progs.nvim = {
@ -65,7 +66,7 @@ in
vimAlias = true;
coc = {
enable = true;
settings = import ./coc_settings.nix;
settings = cocConfig;
};
};