From 97cce59541583ffac870c6e6e7ffc3d468aa1c70 Mon Sep 17 00:00:00 2001 From: Gabe Venberg Date: Tue, 9 Apr 2024 18:20:05 -0500 Subject: [PATCH] carapace completion isnt as good as zsh-native. --- modules/home-manager/terminal/zsh.nix | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/modules/home-manager/terminal/zsh.nix b/modules/home-manager/terminal/zsh.nix index 5ea8be6..5dac191 100644 --- a/modules/home-manager/terminal/zsh.nix +++ b/modules/home-manager/terminal/zsh.nix @@ -7,13 +7,28 @@ programs.fzf.enableZshIntegration = true; programs.zoxide.enableZshIntegration = true; programs.yazi.enableZshIntegration = true; - programs.carapace.enableZshIntegration = true; programs.direnv.enableZshIntegration = true; programs.kitty.shellIntegration.enableZshIntegration = true; services.gpg-agent.enableZshIntegration = true; + programs.carapace.enableZshIntegration = false; programs.zsh = { enable = true; enableCompletion = true; + initExtra = '' + #have the menu highlight while we cycle through options + zstyle ':completion:*' menu select + #case insensitive completion + zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}' + #allow completion from midword + setopt COMPLETE_IN_WORD + #move cursor to end of word after completing + setopt ALWAYS_TO_END + #complete aliases as well + setopt COMPLETE_ALIASES + #select first item when you press tab the first time. + setopt MENU_COMPLETE + + ''; autocd = true; history = { ignoreAllDups = true;