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
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"];
};
};
};