fix: nest conform settings correctly

This commit is contained in:
Youwen Wu 2024-08-24 22:09:01 -07:00
parent 44f9a7fd2f
commit b4be742668
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3

View file

@ -528,19 +528,21 @@
# Code formatting # Code formatting
conform-nvim = { conform-nvim = {
enable = true; enable = true;
format_on_save = { settings = {
timeoutMs = 500; format_on_save = {
lspFallback = true; timeoutMs = 500;
}; lspFallback = true;
formatters_by_ft = { };
lua = ["stylua"]; formatters_by_ft = {
python = ["black"]; lua = ["stylua"];
nix = ["alejandra"]; python = ["black"];
svelte = ["prettier"]; nix = ["alejandra"];
rust = ["rustfmt"]; svelte = ["prettier"];
haskell = ["fourmolu"]; rust = ["rustfmt"];
"*" = ["codespell"]; haskell = ["fourmolu"];
"_" = ["trim_whitespace"]; "*" = ["codespell"];
"_" = ["trim_whitespace"];
};
}; };
}; };