home/nvim: add more configs for coc-rust-analyzer
This commit is contained in:
parent
aa9aaf0e7c
commit
1619c737a9
3 changed files with 9 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue