diff --git a/zsh/mappings.zsh b/zsh/mappings.zsh new file mode 100644 index 0000000..d7962ad --- /dev/null +++ b/zsh/mappings.zsh @@ -0,0 +1,12 @@ +function zle_eval { + echo -en "\e[2K\r" + eval "$@" + zle redisplay +} + +function openlazygit { + zle_eval lazygit +} + +zle -N openlazygit; bindkey "^G" openlazygit + diff --git a/zsh/zimrc b/zsh/zimrc index b4fed74..c871eb8 100644 --- a/zsh/zimrc +++ b/zsh/zimrc @@ -15,4 +15,5 @@ zmodule mafredri/zsh-async zmodule hlissner/zsh-autopair zmodule pabloariasal/zfm zmodule agkozak/zsh-z +zmodule Aloxaf/fzf-tab #zmodule cusxio/delta-prompt diff --git a/zsh/zshrc b/zsh/zshrc index 6aaa902..38a29f2 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -3,10 +3,13 @@ source ~/.config/zsh/aliases.zsh source ~/.config/zsh/plugins.zsh source ~/.config/zsh/vi.zsh source ~/.config/zsh/fzf.zsh +source ~/.config/zsh/mappings.zsh if [ -f ~/.sconfig/zsh/zshrc ]; then source ~/.sconfig/zsh/zshrc fi autopair-init +source ~/.zim/modules/fzf-tab/fzf-tab.plugin.zsh +