dotfiles/home/.config/zsh/02-plugins.zsh

51 lines
1.5 KiB
Bash
Raw Normal View History

# install zinit if it's not already installed
if [ ! -f ~/.zinit/bin/zinit.zsh ]; then
2022-03-11 18:14:21 +02:00
mkdir ~/.zinit
git clone https://github.com/zdharma-continuum/zinit.git ~/.zinit/bin
fi
source ~/.zinit/bin/zinit.zsh
# pure prompt
zinit ice load multisrc'{async,pure}.zsh'
zinit light sindresorhus/pure
2021-11-13 13:07:50 +02:00
# fzf as tab completion
zinit ice lucid
zinit light Aloxaf/fzf-tab
# substring search
zinit ice lucid
zinit light zsh-users/zsh-history-substring-search
2021-11-13 13:07:50 +02:00
# fzf git awesomeness
zinit ice wait'1' lucid atload'source $HOME/.config/zsh/03-aliases.zsh'
zinit light wfxr/forgit
# lots of completions
zinit ice wait'1' lucid as'completion'
zinit light zsh-users/zsh-completions
# swaymsg completions
zinit ice wait'1' lucid as'completion'
zinit snippet https://gist.githubusercontent.com/RPigott/a3efdc08fa4d5fd7df38d091ab5e8532/raw/867ac1884d97d1bd1e5d4037d4eefdf4a004e72b/_swaymsg
# dotdrop completion
zinit ice wait'1' lucid as'completion'
zinit snippet '$DOTREPO/dotdrop/completion/_dotdrop-completion.zsh'
# syntax highlighting
zinit ice lucid atinit'zpcompinit'
zinit light zdharma-continuum/fast-syntax-highlighting
2021-11-13 13:07:50 +02:00
# use fzf with zsh
2020-11-16 11:50:40 +02:00
{%@@ if profile == "mko-laptop" @@%}
2021-11-13 13:07:50 +02:00
# Source from home directory since mko-laptop is ubuntu and it has an
# old version of FZF in it's repositories
source ~/Software/fzf/shell/key-bindings.zsh
source ~/Software/fzf/shell/completion.zsh
2020-11-16 11:50:40 +02:00
{%@@ else @@%}
2021-11-13 13:07:50 +02:00
source /usr/share/fzf/key-bindings.zsh
source /usr/share/fzf/completion.zsh
2020-11-16 11:50:40 +02:00
{%@@ endif @@%}