fix: cargo clippy for rust

This commit is contained in:
Noah Masur committed 2023-11-05 08:12:07 -05:00
1 parent d128511a21
commit 3fd95643b0
2 files changed
+8 -4

No files matched your search

+6 -2
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" { } ];