Skip to content

Commit b52f696

Browse files
author
Mrid22
committed
modules/zsh: fix fzf-tab
fuzzy fix fzf-tab typo format
1 parent 4e12f43 commit b52f696

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

modules/zsh/module.nix

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,13 @@ in
9494
};
9595
caseInsensitive = lib.mkOption {
9696
type = lib.types.bool;
97-
default = true;
97+
default = false;
9898
description = "when enabled, makes the completion case insensitive.";
9999
};
100-
fuzzySearch = lib.mkEnableOption "fuzzy-completion";
100+
fuzzySearch = lib.mkOption {
101+
type = lib.types.bool;
102+
default = false;
103+
};
101104
};
102105

103106
autoSuggestions = {
@@ -226,6 +229,10 @@ in
226229
(lib.optionalString cfg.completion.enable cfg.completion.init)
227230
(lib.optionalString cfg.completion.caseInsensitive "zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}' ")
228231
(lib.optionalString cfg.completion.colors "zstyle ':completion:*' list-colors \"$\{(s.:.)LS_COLORS\}\" ")
232+
(lib.optionalString cfg.completion.fuzzySearch ''
233+
zstyle ':completion:*' menu no
234+
source ${config.pkgs.zsh-fzf-tab}/share/fzf-tab/fzf-tab.plugin.zsh
235+
'')
229236

230237
"#Autosuggestions"
231238
(lib.optionalString cfg.autoSuggestions.enable ''
@@ -245,6 +252,7 @@ in
245252
(lib.optionalString ing.oh-my-posh.enable ''eval "$(oh-my-posh init zsh)"'')
246253
(lib.optionalString ing.zoxide.enable ''eval "$(zoxide init zsh ${zoxide-flags})"'')
247254
(lib.optionalString ing.starship.enable ''eval "$(starship init zsh)"'')
255+
(lib.optionalString cfg.completion.fuzzySearch "source ${config.pkgs.zsh-fzf-tab}/share/fzf-tab/fzf-tab.plugin.zsh")
248256

249257
"# History"
250258

0 commit comments

Comments
 (0)