File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 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 = {
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 ''
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
You can’t perform that action at this time.
0 commit comments