parent
8026e4ff6f
commit
af94896ba1
|
@ -193,10 +193,10 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
defaultKeymap = mkOption {
|
defaultKeymap = mkOption {
|
||||||
type = types.nullOr (types.enum [ "emacs" "viins" "vicmd" ]);
|
type = types.nullOr (types.enum (attrNames bindkeyCommands));
|
||||||
default = null;
|
default = null;
|
||||||
example = "emacs";
|
example = "emacs";
|
||||||
description = "The default base keymap to use";
|
description = "The default base keymap to use.";
|
||||||
};
|
};
|
||||||
|
|
||||||
sessionVariables = mkOption {
|
sessionVariables = mkOption {
|
||||||
|
@ -316,8 +316,10 @@ in
|
||||||
|
|
||||||
HELPDIR="${pkgs.zsh}/share/zsh/$ZSH_VERSION/help"
|
HELPDIR="${pkgs.zsh}/share/zsh/$ZSH_VERSION/help"
|
||||||
|
|
||||||
${if cfg.defaultKeymap != null && hasAttr cfg.defaultKeymap bindkeyCommands
|
${optionalString (cfg.defaultKeymap != null) ''
|
||||||
then getAttr cfg.defaultKeymap bindkeyCommands else ""}
|
# Use ${cfg.defaultKeymap} keymap as the default.
|
||||||
|
${getAttr cfg.defaultKeymap bindkeyCommands}
|
||||||
|
''}
|
||||||
|
|
||||||
${concatStrings (map (plugin: ''
|
${concatStrings (map (plugin: ''
|
||||||
path+="$HOME/${pluginsDir}/${plugin.name}"
|
path+="$HOME/${pluginsDir}/${plugin.name}"
|
||||||
|
|
Loading…
Reference in a new issue