From 9ac231630d0e701dee503797ece1351cdbd7ab71 Mon Sep 17 00:00:00 2001 From: Liyua Date: Tue, 1 Jul 2025 20:23:47 +0200 Subject: [PATCH] Fixed a typo. I need to figure out how to do local testing lol --- modules/plugins/languages/nix.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/plugins/languages/nix.nix b/modules/plugins/languages/nix.nix index 2a5383ee..9b9b4e41 100644 --- a/modules/plugins/languages/nix.nix +++ b/modules/plugins/languages/nix.nix @@ -44,8 +44,8 @@ let capabilities = mkLuaInline "capabilities"; on_attach = if cfg.format.enable then mkLuaInline "default_on_attach" else "attach_keymaps"; cmd = packageToCmd cfg.lsp.package "nil"; - settings = { - nil.formatting.command = + settings.nil = { + formatting.command = if cfg.format.enable then if cfg.format.type == "alejandra" then ''{"${cfg.format.package}/bin/alejandra", "--quiet"}'' @@ -55,7 +55,7 @@ let null else null; - } // config.lsp.options; + } // cfg.lsp.options; } }''; # lspConfig = ''