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
|
fd # a simple, fast and user-friendly alternative to find
|
||||||
bat # a cat clone with syntax highlighting and git integration
|
bat # a cat clone with syntax highlighting and git integration
|
||||||
|
|
||||||
# formatters
|
# nix
|
||||||
nixpkgs-fmt # for nix
|
nixpkgs-fmt
|
||||||
|
|
||||||
# browser
|
# browser
|
||||||
librewolf # a fork of firefox, focused on privacy, security and freedom
|
librewolf # a fork of firefox, focused on privacy, security and freedom
|
||||||
|
|
|
@ -15,5 +15,10 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
# Rust
|
# 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.checkOnSave.command" = "clippy";
|
||||||
|
"rust-analyzer.cargo.autoreload" = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,6 +38,7 @@ let
|
||||||
additionalPackages = lspPackages ++ fzfToolsPackages;
|
additionalPackages = lspPackages ++ fzfToolsPackages;
|
||||||
|
|
||||||
vimConfig = builtins.readFile ./config.vim;
|
vimConfig = builtins.readFile ./config.vim;
|
||||||
|
cocConfig = import ./coc_settings.nix;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.progs.nvim = {
|
options.progs.nvim = {
|
||||||
|
@ -65,7 +66,7 @@ in
|
||||||
vimAlias = true;
|
vimAlias = true;
|
||||||
coc = {
|
coc = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = import ./coc_settings.nix;
|
settings = cocConfig;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue