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/emmet.nix
./utils/magma-nvim.nix ./utils/magma-nvim.nix
./utils/which-key.nix ./utils/which-key.nix
./utils/wilder-nvim.nix ./utils/wilder.nix
./utils/zk.nix ./utils/zk.nix
]; ];
} }

View file

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

View file

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