diff options
| author | seth <[email protected]> | 2023-03-12 00:49:55 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2023-03-12 00:49:55 -0500 |
| commit | ba5fb5e7523f5ee55ee130cf16535b9235371b51 (patch) | |
| tree | 18738522d24eb4c8295b01be1448825baf7b0aaa /users | |
| parent | 9747d74a3f5819f564d23c2fcbfd79bd50a8690b (diff) | |
improve zsh config
Diffstat (limited to 'users')
| -rw-r--r-- | users/seth/shell/zsh.nix | 40 |
1 files changed, 30 insertions, 10 deletions
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 @@ -61,12 +63,6 @@ }; plugins = [ { - name = "zsh-completions"; - src = pkgs.zsh-completions; - file = "share/zsh-completions/zsh-completions.plugin.zsh"; - } - - { name = "cattppuccin-zsh-syntax-highlighting"; src = pkgs.fetchFromGitHub { owner = "catppuccin"; @@ -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; }; |
