From 849959a19e55678321074b2aa58ce6a930fab859 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jalil=20David=20Salam=C3=A9=20Messina?= Date: Thu, 4 Jul 2024 00:05:39 +0200 Subject: [PATCH] [fix] nvim: switch nix formatter to nixfmt-rfc-style --- nvim/plugins.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nvim/plugins.nix b/nvim/plugins.nix index 3daf5d1..564335b 100644 --- a/nvim/plugins.nix +++ b/nvim/plugins.nix @@ -143,12 +143,13 @@ in # FIXME: doesn't include formatters conform-nvim = { enable = true; + formatters.nixfmt.command = "${lib.getExe pkgs.nixfmt-rfc-style}"; formattersByFt = { "_" = [ "trim_whitespace" ]; c = [ "clang_format" ]; cpp = [ "clang_format" ]; lua = [ "stylua" ]; - nix = [ "alejandra" ]; + nix = [ "nixfmt" ]; rust = [ "rustfmt" ]; sh = [ "shfmt" ]; toml = [ "taplo" ];