formatter/conform-nvim: fix formatters option type for correct merging (#1449)

`conform-nvim.setupOpts.formatters.<name>` config definitions will be
merged instead of overridden

Co-authored-by: Foo Bar <foobar@example.com>
This commit is contained in:
foobar14 2026-03-15 12:18:37 +00:00 committed by GitHub
commit eecb26b15d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 2 deletions

View file

@ -1,7 +1,7 @@
{lib, ...}: let
inherit (lib.generators) mkLuaInline;
inherit (lib.options) mkOption mkEnableOption literalMD;
inherit (lib.types) attrs either nullOr listOf submodule str;
inherit (lib.types) attrs attrsOf either nullOr listOf submodule str;
inherit (lib.nvim.lua) toLuaObject;
inherit (lib.nvim.types) luaInline mkPluginSetupOption;
@ -49,7 +49,7 @@ in {
enable = mkEnableOption "lightweight yet powerful formatter plugin for Neovim [conform-nvim]";
setupOpts = mkPluginSetupOption "conform.nvim" {
formatters = mkOption {
type = formattersType;
type = attrsOf formattersType;
default = {};
description = "Custom formatters and overrides for built-in formatters.";
};