From ba5fb5e7523f5ee55ee130cf16535b9235371b51 Mon Sep 17 00:00:00 2001 From: seth Date: Sun, 12 Mar 2023 00:49:55 -0500 Subject: improve zsh config --- users/seth/shell/zsh.nix | 40 ++++++++++++++++++++++++++++++---------- 1 file changed, 30 insertions(+), 10 deletions(-) (limited to 'users/seth/shell/zsh.nix') diff --git a/users/seth/shell/zsh.nix b/users/seth/shell/zsh.nix index c6b7ee1..3e9d5e9 100644 --- a/users/seth/shell/zsh.nix +++ b/users/seth/shell/zsh.nix @@ -3,10 +3,11 @@ pkgs, ... }: { + home.packages = with pkgs; [fzf]; + programs.zsh = { - enable = false; + enable = true; enableAutosuggestions = true; - enableVteIntegration = true; completionInit = '' autoload -Uz bashcompinit compinit local zdump="${config.xdg.cacheHome}/zsh/zdump" @@ -21,8 +22,9 @@ defaultKeymap = "emacs"; dotDir = ".config/zsh"; initExtra = '' - autoload -Uz promptinit - prompt walters + autoload -Uz promptinit colors + promptinit + colors zmodload zsh/zutil zmodload zsh/complist @@ -60,12 +62,6 @@ size = 100; }; plugins = [ - { - name = "zsh-completions"; - src = pkgs.zsh-completions; - file = "share/zsh-completions/zsh-completions.plugin.zsh"; - } - { name = "cattppuccin-zsh-syntax-highlighting"; src = pkgs.fetchFromGitHub { @@ -77,6 +73,30 @@ file = "themes/catppuccin_mocha-zsh-syntax-highlighting.zsh"; } + + { + name = "nix-zsh-completions"; + src = pkgs.nix-zsh-completions; + file = "share/zsh/plugins/nix/nix-zsh-completions.plugin.zsh"; + } + + { + name = "zsh-autopair"; + src = pkgs.zsh-autopair; + 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