This commit is contained in:
liph
2026-07-04 00:21:43 +02:00
parent 658498860e
commit 7b23a57221
59 changed files with 781 additions and 129 deletions
+8 -10
View File
@@ -1,6 +1,5 @@
# Set the directory to store zinit and plugins
ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.locale/share}/zinit/zinit.git"
# Download Zinit if not present
if [ ! -d "$ZINIT_HOME" ]; then
mkdir -p "$(dirname $ZINIT_HOME)"
@@ -14,17 +13,17 @@ source ~/.plugins.zsh
source ~/.export.zsh
# Initialization settings for zsh-vi-mode
ZVM_INIT_MODE=sourcing
# ZVM_INIT_MODE=sourcing
# CONSOLIDATED FUNCTION: All zsh-vi-mode logic must be in one place [2]
function zvm_after_init() {
# Fix fzf interaction
Fix fzf interaction
source <(fzf --zsh)
# Bind Atuin search for both Insert and Normal modes [9]
zvm_bindkey viins '^R' atuin-search
zvm_bindkey vicmd '^R' atuin-search
# Re-bind autosuggest-accept
bindkey '^@' autosuggest-accept
}
@@ -58,10 +57,10 @@ _fzf_comprun() {
local command=$1
shift
case "$command" in
cd) fzf --preview 'eza --tree --color=always {} | head -200' "$@" ;;
export|unset) fzf --preview "eval 'echo \$' {}" "$@" ;;
ssh) fzf --preview 'dig {}' "$@" ;;
*) fzf --preview "--preview 'bat -n --color=always --line-range :10 {}'" "$@" ;;
cd) fzf --preview 'eza --tree --color=always {} | head -200' "$@" ;;
export | unset) fzf --preview "eval 'echo \$' {}" "$@" ;;
ssh) fzf --preview 'dig {}' "$@" ;;
*) fzf --preview "--preview 'bat -n --color=always --line-range :10 {}'" "$@" ;;
esac
}
@@ -75,7 +74,6 @@ function y() {
rm -f -- "$tmp"
}
zinit ice depth=1
# Zinit Annexes
zinit light-mode for \