Signed-off-by: Lander Van den Bulcke <landervandenbulcke@gmail.com>
This commit is contained in:
Lander Van den Bulcke 2025-10-10 14:02:21 +02:00
parent ff2c59724a
commit 5c5c106495
Signed by: lander
GPG key ID: 0142722B4B0C536F
29 changed files with 2445 additions and 109 deletions

21
plugins/lsp/conform.nix Normal file
View file

@ -0,0 +1,21 @@
# formatter with lsp fallback
{ lib, pkgs, ... }:
{
plugins.conform-nvim = {
enable = true;
settings = {
default_format_opts.lsp_format = "prefer";
formatters_by_ft = {
"_" = [
"squeeze_blanks"
"trim_whitespace"
"trim_newlines"
];
};
formatters.squeeze_blanks.command = lib.getExe' pkgs.coreutils "cat";
};
};
}