mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-12-28 05:32:23 +00:00
wrapper: use freeform types for vim.globals
This commit is contained in:
parent
29b7c415a9
commit
ba14b3538e
1 changed files with 16 additions and 5 deletions
|
@ -5,7 +5,7 @@
|
||||||
}: let
|
}: let
|
||||||
inherit (lib.options) mkOption mkEnableOption literalMD literalExpression;
|
inherit (lib.options) mkOption mkEnableOption literalMD literalExpression;
|
||||||
inherit (lib.strings) optionalString;
|
inherit (lib.strings) optionalString;
|
||||||
inherit (lib.types) str attrs lines listOf either path;
|
inherit (lib.types) str attrs lines listOf either path submodule anything;
|
||||||
inherit (lib.nvim.types) dagOf;
|
inherit (lib.nvim.types) dagOf;
|
||||||
inherit (lib.nvim.lua) listToLuaTable;
|
inherit (lib.nvim.lua) listToLuaTable;
|
||||||
|
|
||||||
|
@ -100,10 +100,21 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
globals = mkOption {
|
globals = mkOption {
|
||||||
type = attrs;
|
default = {};
|
||||||
default = {
|
type = submodule {
|
||||||
mapleader = " ";
|
freeformType = anything;
|
||||||
maplocalleader = ",";
|
options = {
|
||||||
|
mapleader = mkOption {
|
||||||
|
type = str;
|
||||||
|
default = " ";
|
||||||
|
description = "The key used for <leader> mappings";
|
||||||
|
};
|
||||||
|
maplocalleader = mkOption {
|
||||||
|
type = str;
|
||||||
|
default = ",";
|
||||||
|
description = "The key used for <localleader> mappings";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
example = {"some_variable" = 42;};
|
example = {"some_variable" = 42;};
|
||||||
description = ''
|
description = ''
|
||||||
|
|
Loading…
Reference in a new issue