mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-01-15 06:57:48 +00:00
formatter/conform-nvim: use listOf anything
This commit is contained in:
parent
26567dffef
commit
7d8e2f7669
1 changed files with 2 additions and 2 deletions
|
|
@ -4,7 +4,7 @@
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (lib.options) mkOption mkEnableOption literalExpression;
|
inherit (lib.options) mkOption mkEnableOption literalExpression;
|
||||||
inherit (lib.types) attrsOf anything list either;
|
inherit (lib.types) attrsOf anything listOf either;
|
||||||
inherit (lib.nvim.types) mkPluginSetupOption luaInline;
|
inherit (lib.nvim.types) mkPluginSetupOption luaInline;
|
||||||
|
|
||||||
cfg = config.vim.formatter.conform-nvim;
|
cfg = config.vim.formatter.conform-nvim;
|
||||||
|
|
@ -42,7 +42,7 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
formatters_by_ft = mkOption {
|
formatters_by_ft = mkOption {
|
||||||
type = either (attrsOf list) luaInline;
|
type = either (attrsOf (listOf anything)) luaInline;
|
||||||
default = {};
|
default = {};
|
||||||
example = {lua = ["stylua"];};
|
example = {lua = ["stylua"];};
|
||||||
description = ''
|
description = ''
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue