mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-11-12 16:35:30 +00:00
wrapper/lazy: allow luaInline as a type in keys
One way of using keys is `{ "<C-x>", mode = "n" }`, which isn't possible
in nvf without luaInline
This commit is contained in:
parent
52042f624c
commit
d8e6483c64
3 changed files with 4 additions and 4 deletions
|
|
@ -1,7 +1,7 @@
|
|||
{lib, ...}: let
|
||||
inherit (lib.options) mkOption mkEnableOption;
|
||||
inherit (lib.types) enum listOf submodule nullOr str bool int attrsOf anything either oneOf lines;
|
||||
inherit (lib.nvim.types) pluginType;
|
||||
inherit (lib.nvim.types) pluginType luaInline;
|
||||
inherit (lib.nvim.config) mkBool;
|
||||
|
||||
lznKeysSpec = submodule {
|
||||
|
|
@ -135,7 +135,7 @@
|
|||
};
|
||||
|
||||
keys = mkOption {
|
||||
type = nullOr (oneOf [str (listOf lznKeysSpec) (listOf str)]);
|
||||
type = nullOr (oneOf [(listOf lznKeysSpec) str (listOf str) luaInline (listOf luaInline)]);
|
||||
default = null;
|
||||
example = ''
|
||||
keys = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue