rust: nuked my custom formatter

This commit is contained in:
Barna Máté 2025-01-16 20:22:18 +01:00
parent 27a02f12eb
commit 6fc3986e36
2 changed files with 13 additions and 8 deletions

View file

@ -1,4 +1,5 @@
{ ... }: { { ... }:
{
keymaps = [ keymaps = [
{ {
# Focus file tree # Focus file tree
@ -10,6 +11,16 @@
key = "<leader>e"; key = "<leader>e";
action = "<cmd>CHADopen<cr>"; action = "<cmd>CHADopen<cr>";
} }
{
# format current document
mode = "n";
key = "<leader>bf";
action = "<cmd>lua require('conform').format()<cr>";
options = {
silent = true;
desc = "Format Buffer";
};
}
]; ];
} }

View file

@ -11,13 +11,7 @@
conform-nvim.settings = { conform-nvim.settings = {
formatters_by_ft = { formatters_by_ft = {
rust = [ "cargo" ]; rust = [ "rustfmt" ];
};
formatters = {
cargo = {
command = "cargo-fmt";
};
}; };
}; };