From af52848b4b67ddc0bb135708344e81c42d849e6f Mon Sep 17 00:00:00 2001 From: Yan Lin Date: Sat, 11 Oct 2025 14:43:45 +0200 Subject: [PATCH] enable unnamedplus for zsh --- modules/zsh.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/zsh.nix b/modules/zsh.nix index 16b63f6..dba5b72 100644 --- a/modules/zsh.nix +++ b/modules/zsh.nix @@ -35,9 +35,14 @@ in if [[ -f ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-theme ]]; then source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-theme fi - + # Load Powerlevel10k configuration (managed by Nix) source ~/.p10k.zsh + + # Load zsh-system-clipboard plugin for vi mode clipboard integration + if [[ -f ${pkgs.zsh-system-clipboard}/share/zsh/zsh-system-clipboard/zsh-system-clipboard.zsh ]]; then + source ${pkgs.zsh-system-clipboard}/share/zsh/zsh-system-clipboard/zsh-system-clipboard.zsh + fi # Vim mode configuration # Reduce delay when switching modes (10ms instead of 400ms) @@ -155,6 +160,7 @@ in # Essential packages for enhanced zsh experience home.packages = with pkgs; [ zsh-powerlevel10k + zsh-system-clipboard fzf fd ripgrep