plugins: wilder-nvim -> wilder

This commit is contained in:
Gaetan Lepage 2023-10-11 09:01:45 +02:00 committed by Gaétan Lepage
parent c5150bfcdc
commit b483c752c2
3 changed files with 14 additions and 5 deletions

View file

@ -140,7 +140,7 @@
./utils/emmet.nix
./utils/magma-nvim.nix
./utils/which-key.nix
./utils/wilder-nvim.nix
./utils/wilder.nix
./utils/zk.nix
];
}

View file

@ -5,7 +5,7 @@
...
}:
with lib; let
cfg = config.plugins.wilder-nvim;
cfg = config.plugins.wilder;
helpers = import ../helpers.nix {inherit lib;};
boolToInt = value:
@ -15,7 +15,15 @@ with lib; let
then "1"
else "0";
in {
options.plugins.wilder-nvim =
imports = [
(
mkRenamedOptionModule
["plugins" "wilder-nvim"]
["plugins" "wilder"]
)
];
options.plugins.wilder =
helpers.extraOptionsOptions
// {
enable = mkEnableOption "wilder-nvim";

View file

@ -1,11 +1,12 @@
{
empty = {
plugins.wilder-nvim.enable = true;
plugins.wilder.enable = true;
};
example = {
plugins.wilder-nvim = {
plugins.wilder = {
enable = true;
modes = ["/" ":"];
enableCmdlineEnter = false;
wildcharm = "k";