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
|
|
@ -294,4 +294,8 @@ https://github.com/gorbit99/codewindow.nvim
|
||||||
|
|
||||||
- Fix `vim.assistant.codecompanion-nvim` lazy loading with [blink-cmp]
|
- Fix `vim.assistant.codecompanion-nvim` lazy loading with [blink-cmp]
|
||||||
|
|
||||||
|
[foobar14](https://github.com/foobar14):
|
||||||
|
|
||||||
|
- Fix `vim.formatter.conform-nvim.setupOpts.formatters` type for correct merging
|
||||||
|
|
||||||
<!-- vim: set textwidth=80: -->
|
<!-- vim: set textwidth=80: -->
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{lib, ...}: let
|
{lib, ...}: let
|
||||||
inherit (lib.generators) mkLuaInline;
|
inherit (lib.generators) mkLuaInline;
|
||||||
inherit (lib.options) mkOption mkEnableOption literalMD;
|
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.lua) toLuaObject;
|
||||||
inherit (lib.nvim.types) luaInline mkPluginSetupOption;
|
inherit (lib.nvim.types) luaInline mkPluginSetupOption;
|
||||||
|
|
||||||
|
|
@ -49,7 +49,7 @@ in {
|
||||||
enable = mkEnableOption "lightweight yet powerful formatter plugin for Neovim [conform-nvim]";
|
enable = mkEnableOption "lightweight yet powerful formatter plugin for Neovim [conform-nvim]";
|
||||||
setupOpts = mkPluginSetupOption "conform.nvim" {
|
setupOpts = mkPluginSetupOption "conform.nvim" {
|
||||||
formatters = mkOption {
|
formatters = mkOption {
|
||||||
type = formattersType;
|
type = attrsOf formattersType;
|
||||||
default = {};
|
default = {};
|
||||||
description = "Custom formatters and overrides for built-in formatters.";
|
description = "Custom formatters and overrides for built-in formatters.";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue