diff --git a/modules/prompt/themes/eriner.zsh-theme b/modules/prompt/themes/eriner.zsh-theme index b3a4d18..3215eda 100644 --- a/modules/prompt/themes/eriner.zsh-theme +++ b/modules/prompt/themes/eriner.zsh-theme @@ -141,7 +141,7 @@ prompt_eriner_main() { prompt_eriner_precmd() { vcs_info PROMPT='%{%f%b%k%}$(prompt_eriner_main) ' - RPROMPT="${${KEYMAP/vicmd/[NORMAL]}/(main|viins)/}" + RPROMPT="${ZIM_PROMPT_INSERTMODE:+${${KEYMAP/vicmd/[NORMAL]}/(main|viins)/}}" } zle-keymap-slect() { diff --git a/modules/prompt/themes/gitster.zsh-theme b/modules/prompt/themes/gitster.zsh-theme index 8b9a870..ba88fd2 100644 --- a/modules/prompt/themes/gitster.zsh-theme +++ b/modules/prompt/themes/gitster.zsh-theme @@ -15,7 +15,8 @@ prompt_gitster_get_pwd() { prompt_gitster_precmd() { [[ ${+functions[git-info]} ]] && git-info - RPROMPT="${${KEYMAP/vicmd/[NORMAL]}/(main|viins)/}" + PROMPT='$(prompt_gitster_get_status)%F{white}$(prompt_gitster_get_pwd)${(e)git_info[prompt]}%f ' + RPROMPT="${ZIM_PROMPT_INSERTMODE:+${${KEYMAP/vicmd/[NORMAL]}/(main|viins)/}}" } zle-keymap-select() { @@ -39,9 +40,6 @@ prompt_gitster_setup() { zstyle ':zim:git-info:dirty' format '%F{yellow}✗' zstyle ':zim:git-info:keys' format \ 'prompt' ' %F{cyan}%b%c %C%D' - - PROMPT='$(prompt_gitster_get_status)%F{white}$(prompt_gitster_get_pwd)${(e)git_info[prompt]}%f ' - RPROMPT='' } prompt_gitster_setup "$@" diff --git a/modules/prompt/themes/magicmace.zsh-theme b/modules/prompt/themes/magicmace.zsh-theme index ea495e7..b58e908 100644 --- a/modules/prompt/themes/magicmace.zsh-theme +++ b/modules/prompt/themes/magicmace.zsh-theme @@ -45,7 +45,7 @@ prompt_magicmace_precmd() { git-info fi PROMPT='${COLOR_USER_LEVEL}$(prompt_magicmace_status)[${COLOR_NORMAL}$(short_pwd)${COLOR_USER_LEVEL}]${(e)git_info[prompt]}── ─%f ' - RPROMPT="${${KEYMAP/vicmd/[NORMAL]}/(main|viins)/}" + RPROMPT="${ZIM_PROMPT_INSERTMODE:+${${KEYMAP/vicmd/[NORMAL]}/(main|viins)/}}" } zle-keymap-select() { diff --git a/modules/prompt/themes/steeef.zsh-theme b/modules/prompt/themes/steeef.zsh-theme index 34400bb..496ec6c 100644 --- a/modules/prompt/themes/steeef.zsh-theme +++ b/modules/prompt/themes/steeef.zsh-theme @@ -40,7 +40,7 @@ prompt_steeef_precmd() { vcs_info 'prompt' fi - RPROMPT="${${KEYMAP/vicmd/[NORMAL]}/(main|viins)/}" + RPROMPT="${ZIM_PROMPT_INSERTMODE:+${${KEYMAP/vicmd/[NORMAL]}/(main|viins)/}}" PROMPT=' %{$purple%}%n${${reset_color}%} at %{$orange%}%m${${reset_color}%} in %{$limegreen%}%~${${reset_color}%} $vcs_info_msg_0_$(virtualenv_info)%{${reset_color}%} %(!.#.$) '