feat(zsh): switch from antigen to antidote

This commit is contained in:
2024-09-24 22:40:41 +02:00
parent 875ee44e7c
commit 5de5edca67
3 changed files with 23 additions and 20 deletions

17
zsh/.zsh_plugins.txt Normal file
View File

@@ -0,0 +1,17 @@
# set up Zsh completions with plugins
# mattmc3/ez-compinit
zsh-users/zsh-completions kind:fpath path:src
# frameworks like oh-my-zsh are supported
getantidote/use-omz # handle OMZ dependencies
ohmyzsh/ohmyzsh path:lib # load OMZ's library
ohmyzsh/ohmyzsh path:plugins/git
# theme
romkatv/powerlevel10k
# popular fish-like plugins
zsh-users/zsh-autosuggestions
# nvm
lukechilds/zsh-nvm

View File

@@ -9,28 +9,13 @@ if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# pre plugin load
## pre plugin load
# nvm
export NVM_COMPLETION=true
# load antigen
typeset -a ANTIGEN_CHECK_FILES=(${ZDOTDIR:-~}/.zshrc ${ZDOTDIR:-~}/antigen.zsh)
source $ZDOTDIR/antigen.zsh
# oh-my-zsh library and git plugin
antigen use oh-my-zsh
antigen bundle git
# zsh users plugin
antigen bundle zsh-users/zsh-autosuggestions
# other
antigen bundle lukechilds/zsh-nvm
# theme
antigen theme romkatv/powerlevel10k
# apply plugin load
antigen apply
# source antidote
source $ZDOTDIR/.antidote/antidote.zsh
antidote load
unsetopt autocd