diff --git a/homes/modules/programs/neovim/lua/plugins/format.lua b/homes/modules/programs/neovim/lua/plugins/format.lua index 2cd28a4..0e652f5 100644 --- a/homes/modules/programs/neovim/lua/plugins/format.lua +++ b/homes/modules/programs/neovim/lua/plugins/format.lua @@ -12,7 +12,7 @@ return { conform.setup({ formatters_by_ft = { lua = nixCats("lang.lua") and { "stylua" } or nil, - nix = nixCats("lang.nix") and { "nixfmt" } or nil, + nix = nixCats("lang.nix") and { "alejandra" } or nil, rust = nixCats("lang.rust") and { "rustfmt", lsp_format = "fallback" } or nil, haskell = nixCats("lang.haskell") and { "ormolu" } or nil, proto = nixCats("lang.protobuf") and { "buf" } or nil, diff --git a/homes/modules/programs/neovim/nixcats.nix b/homes/modules/programs/neovim/nixcats.nix index a599436..97c78f6 100644 --- a/homes/modules/programs/neovim/nixcats.nix +++ b/homes/modules/programs/neovim/nixcats.nix @@ -65,7 +65,7 @@ in nix = [ nil nix-doc # TODO: i forgot what this is for - nixfmt + alejandra ]; rust = [ cargo