mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-03-15 21:26:03 +00:00
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:
parent
83b44eaf50
commit
eecb26b15d
2 changed files with 6 additions and 2 deletions
|
|
@ -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.";
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue