rust: added formatter cus I was tryna use the cargo-fmt as a linter, oops

This commit is contained in:
Barna Máté 2025-01-16 19:46:23 +01:00
parent 96fa2296fa
commit aaab1ea5bd
2 changed files with 7 additions and 6 deletions

View file

@ -1,4 +1,5 @@
{ pkgs, ... }: { { pkgs, ... }:
{
imports = [ imports = [
./ai ./ai
@ -12,5 +13,4 @@
# Persistence # Persistence
plugins.persistence.enable = true; plugins.persistence.enable = true;
} }

View file

@ -9,16 +9,17 @@
settings.completion.callable.snippets = "add_parentheses"; settings.completion.callable.snippets = "add_parentheses";
}; };
lint = { conform-nvim.settings = {
lintersByFt = { formatters_by_ft = {
rust = [ "cargo" ]; rust = [ "cargo" ];
}; };
linters = { formatters = {
cargo = { cargo = {
cmd = "${pkgs.rustfmt}/bin/cargo-fmt"; command = "cargo-fmt";
}; };
}; };
}; };
}; };
} }