mirror of
https://github.com/youwen5/neovim-flake.git
synced 2024-11-28 12:13:51 -08:00
fix: nest conform settings correctly
This commit is contained in:
parent
44f9a7fd2f
commit
b4be742668
1 changed files with 15 additions and 13 deletions
28
default.nix
28
default.nix
|
@ -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"];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue