From 076c984294ef212fbf8d3751aa81bd13e82d3160 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sun, 14 Aug 2022 21:27:22 -0500 Subject: [PATCH] fix(zsh): integrate zsh vi mode correctly --- dots/.config/zsh/config/plugins/init.zsh | 10 +++++++++- dots/.config/zsh/config/plugins/zsh-vi-mode | 1 + 2 files changed, 10 insertions(+), 1 deletion(-) create mode 160000 dots/.config/zsh/config/plugins/zsh-vi-mode diff --git a/dots/.config/zsh/config/plugins/init.zsh b/dots/.config/zsh/config/plugins/init.zsh index cca444aa..2cc5d2cf 100644 --- a/dots/.config/zsh/config/plugins/init.zsh +++ b/dots/.config/zsh/config/plugins/init.zsh @@ -1,4 +1,13 @@ configure() { + zvm_after_init() { + local wkdir="${BASE_ZSH_CONFIG_DIR}/config/plugins" + + # source fzf + [[ -r "${XDG_CONFIG_HOME}/fzf/fzf.zsh" ]] && source "${XDG_CONFIG_HOME}/fzf/fzf.zsh" + + # activate syntax highlighting + source "${wkdir}/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" + } } @@ -7,7 +16,6 @@ init() { source "${wkdir}/fzf-tab/fzf-tab.plugin.zsh" source "${wkdir}/zsh-autosuggestions/zsh-autosuggestions.zsh" source "${wkdir}/zsh-completions/zsh-completions.plugin.zsh" - source "${wkdir}/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" source "${wkdir}/zsh-vi-mode/zsh-vi-mode.zsh" eval "$(lua "${wkdir}/z.lua/z.lua" --init zsh enhanced once)" diff --git a/dots/.config/zsh/config/plugins/zsh-vi-mode b/dots/.config/zsh/config/plugins/zsh-vi-mode new file mode 160000 index 00000000..debe9c8a --- /dev/null +++ b/dots/.config/zsh/config/plugins/zsh-vi-mode @@ -0,0 +1 @@ +Subproject commit debe9c8ad191b68b143230eb7bee437caba9c74f