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 = [
./ai
@ -12,5 +13,4 @@
# Persistence
plugins.persistence.enable = true;
}

View file

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