zsh/zplug.zsh

59 lines
1.5 KiB
Bash
Raw Normal View History

2020-09-16 10:01:40 +00:00
export ZPLUG_HOME=$ZDOTDIR/zplug
2019-02-01 10:06:59 +00:00
source $(zdotfile zplug/init.zsh)
zplug 'zplug/zplug', hook-build:'zplug --self-manage'
2019-02-01 10:06:59 +00:00
zplug "MichaelAquilina/zsh-you-should-use"
zplug 'jreese/zsh-titles'
zplug 'crater2150-zsh/fzf-widgets'
zplug 'crater2150-zsh/conf'
zplug 'crater2150-zsh/chroma-z', as:theme
2020-02-24 09:44:13 +00:00
zplug $ZDOTDIR/plugins/highlight-config, from:local, defer:3
#zplug $ZDOTDIR/plugins/bundled-compdefs, from:local
2020-04-02 16:22:10 +00:00
zplug $ZDOTDIR/plugins/tmpsrc, from:local
2020-04-29 08:24:49 +00:00
zplug $ZDOTDIR/plugins/pyenv, from:local
2019-02-01 10:06:59 +00:00
2019-02-11 15:25:00 +00:00
zplug 'molovo/revolver', \
as:command, \
use:revolver
zplug 'zunit-zsh/zunit', \
as:command, \
use:zunit, \
hook-build:'./build.zsh'
zplug "zsh-users/zsh-syntax-highlighting", defer:2
2019-02-01 10:06:59 +00:00
2019-12-05 10:02:55 +00:00
zplug "plugins/ng", from:oh-my-zsh
zplug "zpm-zsh/colors"
2020-02-13 13:45:43 +00:00
zplug "xuhdev/k", at:gnu-ls-color
2020-02-20 13:49:46 +00:00
zplug "urbainvaes/fzf-marks"
zplug "crater2150-zsh/tmsu-fzf", as:plugin
2020-02-13 13:45:43 +00:00
zplug load
if zplug check 'crater2150-zsh/fzf-widgets'; then
# Map widgets to key
bindkey '\ec' fzf-change-directory
bindkey '^r' fzf-insert-history
bindkey '^xf' fzf-insert-files
bindkey '^xd' fzf-insert-directory
bindkey '^xn' fzf-insert-named-directory
# Start fzf in a tmux pane
FZF_WIDGET_TMUX=1
# use fd for finding directories and files
2019-12-05 10:02:55 +00:00
FZF_CHANGE_DIR_FIND_COMMAND="fd -t d"
FZF_INSERT_DIR_COMMAND="fd -t d"
FZF_INSERT_FILES_COMMAND="fd -t f"
FZF_EDIT_FILES_COMMAND="fd -t f"
# modify history command to remove duplicates
FZF_HISTORY_COMMAND="fc -l 1 | sed 's/ *[0-9]* //g' | awk '!seen[\$0]++'"
fi