fix: cargo clippy for rust

This commit is contained in:
Noah Masur 2023-11-05 08:12:07 -05:00
parent d128511a21
commit 3fd95643b0
2 changed files with 8 additions and 4 deletions

View File

@ -43,8 +43,12 @@
cmd = [ "${pkgs.terraform-ls}/bin/terraform-ls" "serve" ];
};
use.lspconfig.rust_analyzer.setup =
dsl.callWith { cmd = [ "${pkgs.rust-analyzer}/bin/rust-analyzer" ]; };
use.lspconfig.rust_analyzer.setup = dsl.callWith {
cmd = [ "${pkgs.rust-analyzer}/bin/rust-analyzer" ];
settings = {
"['rust-analyzer']" = { check = { command = "clippy"; }; };
};
};
vim.api.nvim_create_augroup = dsl.callWith [ "LspFormatting" { } ];

View File

@ -6,9 +6,9 @@
home-manager.users.${config.user} = {
home.packages = with pkgs; [ cargo rustc gcc ];
programs.fish.shellAbbrs = { ca = "cargo"; };
programs.fish.shellAbbrs = { };
home.packages = with pkgs; [ cargo rustc clippy gcc ];
};