From db2a176495a8d212cacde6cb38162ea1cd30ee1c Mon Sep 17 00:00:00 2001 From: seth Date: Mon, 1 May 2023 01:37:05 -0400 Subject: update shell configs --- users/seth/shell/zsh.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'users/seth/shell/zsh.nix') diff --git a/users/seth/shell/zsh.nix b/users/seth/shell/zsh.nix index 75e67b3..b697d02 100644 --- a/users/seth/shell/zsh.nix +++ b/users/seth/shell/zsh.nix @@ -8,6 +8,7 @@ programs.zsh = { enable = true; enableAutosuggestions = true; + completionInit = '' autoload -Uz bashcompinit compinit local zdump="${config.xdg.cacheHome}/zsh/zdump" @@ -19,8 +20,10 @@ fi unset zdump ''; + defaultKeymap = "emacs"; dotDir = ".config/zsh"; + initExtra = '' if [[ -r "$XDG_CACHE_HOME/p10k-instant-prompt-*.zsh" ]]; then source "$XDG_CACHE_HOME/p10k-instant-prompt-*.zsh" @@ -62,12 +65,14 @@ [[ ! -f ~/.config/zsh/.p10k.zsh ]] || source ~/.config/zsh/.p10k.zsh ''; + history = { expireDuplicatesFirst = true; path = "${config.xdg.stateHome}/zsh/zsh_history"; save = 1000; size = 100; }; + plugins = [ { name = "cattppuccin-zsh-syntax-highlighting"; @@ -99,18 +104,13 @@ file = "share/zsh/zsh-autopair/autopair.zsh"; } - { - name = "zsh-fzf-tab"; - src = pkgs.zsh-fzf-tab; - file = "share/fzf-tab/fzf-tab.plugin.zsh"; - } - { name = "zsh-completions"; src = pkgs.zsh-completions; file = "share/zsh-completions/zsh-completions.plugin.zsh"; } ]; + enableSyntaxHighlighting = true; }; } -- cgit v1.2.3