1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-08 19:46:06 +01:00

plugins/conform-nvim: add automatic installation of formatters

Signed-off-by: saygo-png <saygo.mail@proton.me>
This commit is contained in:
saygo-png 2025-09-14 03:30:32 +02:00 committed by Austin Horstman
parent d113982eba
commit fd0c423550
4 changed files with 298 additions and 1 deletions

View file

@ -4,6 +4,21 @@
plugins.conform-nvim.enable = true;
};
all-formatters =
let
allFormatters = lib.importJSON ../../../../../generated/conform-formatters.json;
in
{
plugins.conform-nvim = {
enable = true;
autoInstall = {
enable = true;
enableWarnings = false;
};
settings.formatters_by_ft."*" = allFormatters;
};
};
default = {
plugins.conform-nvim = {
enable = true;