Skip to content

Commit

Permalink
🐛 (conform): use new settings
Browse files Browse the repository at this point in the history
  • Loading branch information
elythh committed Aug 25, 2024
1 parent c793711 commit 468a547
Showing 1 changed file with 60 additions and 56 deletions.
116 changes: 60 additions & 56 deletions config/plug/lsp/conform.nix
Original file line number Diff line number Diff line change
@@ -1,62 +1,66 @@
{
plugins.conform-nvim = {
enable = true;
formatOnSave = {
lspFallback = true;
timeoutMs = 500;
};
notifyOnError = true;
formattersByFt = {
liquidsoap = [ "liquidsoap-prettier" ];
html = [
[
"prettierd"
"prettier"
]
];
css = [
[
"prettierd"
"prettier"
]
];
javascript = [
[
"prettierd"
"prettier"
]
];
javascriptreact = [
[
"prettierd"
"prettier"
]
];
typescript = [
[
"prettierd"
"prettier"
]
];
typescriptreact = [
[
"prettierd"
"prettier"
]
];
python = [ "black" ];
lua = [ "stylua" ];
nix = [ "nixfmt" ];
markdown = [
[
"prettierd"
"prettier"
]
];
yaml = [
"yamllint"
"yamlfmt"
];
settings = {

format_on_save = {
lspFallback = true;
timeoutMs = 500;
};
notify_on_error = true;

formattersByFt = {
liquidsoap = [ "liquidsoap-prettier" ];
html = [
[
"prettierd"
"prettier"
]
];
css = [
[
"prettierd"
"prettier"
]
];
javascript = [
[
"prettierd"
"prettier"
]
];
javascriptreact = [
[
"prettierd"
"prettier"
]
];
typescript = [
[
"prettierd"
"prettier"
]
];
typescriptreact = [
[
"prettierd"
"prettier"
]
];
python = [ "black" ];
lua = [ "stylua" ];
nix = [ "nixfmt" ];
markdown = [
[
"prettierd"
"prettier"
]
];
yaml = [
"yamllint"
"yamlfmt"
];
};
};
};
}

0 comments on commit 468a547

Please sign in to comment.