nixos/fzf: refactor two options

This commit is contained in:
Daniel Nagy 2022-12-03 16:15:00 +01:00
parent f8be62c5ce
commit 3126eb7621
No known key found for this signature in database
GPG Key ID: 1B8E8DCB576FB671

View File

@ -5,18 +5,8 @@ let
in {
options = {
programs.fzf = {
fuzzyCompletion = mkOption {
type = types.bool;
description = lib.mdDoc "Whether to use fzf for fuzzy completion";
default = false;
example = true;
};
keybindings = mkOption {
type = types.bool;
description = lib.mdDoc "Whether to set up fzf keybindings";
default = false;
example = true;
};
fuzzyCompletion = mkEnableOption (mdDoc "fuzzy completion with fzf");
keybindings = mkEnableOption (mdDoc "fzf keybindings");
};
};
config = {