From 6c3a32631afc2cca5c7f003065bfe7115cd877f8 Mon Sep 17 00:00:00 2001 From: Tigor Hutasuhut Date: Mon, 28 Oct 2024 08:51:12 +0700 Subject: [PATCH] conform: use nixfmt for nix files --- lua/plugins/conform.lua | 1 - lua/plugins/nix.lua | 8 ++++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/lua/plugins/conform.lua b/lua/plugins/conform.lua index 0b12ce8..7875c4b 100644 --- a/lua/plugins/conform.lua +++ b/lua/plugins/conform.lua @@ -2,7 +2,6 @@ return { "conform.nvim", opts = { formatters_by_ft = { - nix = { "nixpkgs-fmt" }, templ = { "templ" }, typst = { "typstyle" }, }, diff --git a/lua/plugins/nix.lua b/lua/plugins/nix.lua index 31c5988..13f96b1 100644 --- a/lua/plugins/nix.lua +++ b/lua/plugins/nix.lua @@ -10,6 +10,14 @@ return { }, }, }, + { + "conform.nvim", + opts = { + formatters_by_ft = { + nix = { "nixfmt" }, + }, + }, + }, { "nvim-lspconfig", opts = {