mdformat: add --number -> 1,2,3,4 to 1,1,1,1 is a good idea right?

This commit is contained in:
DashieTM 2024-05-28 13:48:51 +02:00
parent 5ed1986caa
commit a8377b6dcc
3 changed files with 9 additions and 7 deletions

View file

@ -12,5 +12,8 @@
environment.sessionVariables = {
NIXOS_OZONE_WL = "1";
GOPATH = "$HOME/.go";
FLAKE = "home/dashie/gits/dotFiles/nix";
# don't ask... marksman somehow requires this
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT = 1;
};
}

View file

@ -101,12 +101,6 @@ in
enable = true;
enableFishIntegration = true;
};
home.sessionVariables =
{
FLAKE = "home/dashie/gits/dotFiles/nix";
# don't ask... marksman somehow requires this
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT = 1;
};
sops = {
gnupg = {

View file

@ -219,7 +219,12 @@ return {
require("conform").format({ async = true, lsp_fallback = true })
end,
mode = "",
desc = "Format buffer",
numberdesc = "Format buffer",
},
},
formatters = {
mdformat = {
prepend_args = { "--number" },
},
},
formatters_by_ft = {