From b4be742668e7012481ea265cda42946b98ad9ed0 Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Sat, 24 Aug 2024 22:09:01 -0700 Subject: [PATCH] fix: nest conform settings correctly --- default.nix | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/default.nix b/default.nix index 5b162da..1fd440c 100644 --- a/default.nix +++ b/default.nix @@ -528,19 +528,21 @@ # Code formatting conform-nvim = { enable = true; - format_on_save = { - timeoutMs = 500; - lspFallback = true; - }; - formatters_by_ft = { - lua = ["stylua"]; - python = ["black"]; - nix = ["alejandra"]; - svelte = ["prettier"]; - rust = ["rustfmt"]; - haskell = ["fourmolu"]; - "*" = ["codespell"]; - "_" = ["trim_whitespace"]; + settings = { + format_on_save = { + timeoutMs = 500; + lspFallback = true; + }; + formatters_by_ft = { + lua = ["stylua"]; + python = ["black"]; + nix = ["alejandra"]; + svelte = ["prettier"]; + rust = ["rustfmt"]; + haskell = ["fourmolu"]; + "*" = ["codespell"]; + "_" = ["trim_whitespace"]; + }; }; };