dotfiles/home/.config/zsh/02-plugins.zsh
Marko Korhonen 9103822ae8 ZSH improvements:
- Move from FZF to skim (seems to be a bit faster and smooth)
- Improve history
    * Add new options to not save duplicate entries etc
    * pi/pr aliases expand the paru command to history now
2021-08-17 19:17:38 +03:00

48 lines
1.3 KiB
Bash

# install zinit if it's not already installed
if [ ! -f ~/.zinit/bin/zinit.zsh ]; then
mkdir ~/.zinit
git clone https://github.com/zdharma/zinit.git ~/.zinit/bin
fi
source ~/.zinit/bin/zinit.zsh
# pure prompt
zinit ice load multisrc'{async,pure}.zsh'
zinit light sindresorhus/pure
# 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
# 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/fast-syntax-highlighting
# use fzf with zsh
{%@@ if profile == "mko-laptop" @@%}
source ~/.skim.zsh
{%@@ else @@%}
source /usr/share/skim/key-bindings.zsh
source /usr/share/skim/completion.zsh
{%@@ endif @@%}