mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-12 10:14:31 +02:00
lib: remove nixvimTypes
alias
This commit is contained in:
parent
bafc6308f6
commit
2f49c76a6a
59 changed files with 261 additions and 278 deletions
|
@ -10,7 +10,7 @@ let
|
|||
'';
|
||||
|
||||
mode = helpers.defaultNullOpts.mkNullable (
|
||||
with helpers.nixvimTypes; either helpers.keymaps.modeEnum (listOf helpers.keymaps.modeEnum)
|
||||
with lib.types; either helpers.keymaps.modeEnum (listOf helpers.keymaps.modeEnum)
|
||||
) "n" "Modes where the hydra exists, same as `vim.keymap.set()` accepts.";
|
||||
|
||||
body = helpers.mkNullOrStr ''
|
||||
|
@ -75,12 +75,12 @@ let
|
|||
'';
|
||||
|
||||
mode = helpers.mkNullOrOption (
|
||||
with helpers.nixvimTypes; either helpers.keymaps.modeEnum (listOf helpers.keymaps.modeEnum)
|
||||
with lib.types; either helpers.keymaps.modeEnum (listOf helpers.keymaps.modeEnum)
|
||||
) "Override `mode` for this head.";
|
||||
};
|
||||
};
|
||||
headType =
|
||||
with helpers.nixvimTypes;
|
||||
with lib.types;
|
||||
# More precisely, a tuple: [head action opts]
|
||||
listOf (
|
||||
nullOr (
|
||||
|
|
|
@ -129,7 +129,7 @@ with lib;
|
|||
'';
|
||||
|
||||
funcs = mkOption {
|
||||
type = with helpers.nixvimTypes; attrsOf strLuaFn;
|
||||
type = with lib.types; attrsOf strLuaFn;
|
||||
description = ''
|
||||
Table from function names to function.
|
||||
Functions should return a string.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue