Skip to content

Commit

Permalink
Update theme to use updated vi-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
ttelford committed Aug 1, 2024
1 parent 189283f commit 2c73207
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions themes/ttelford.zsh-theme
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,36 @@ local middle_box=$'\n│'
local bottom_box=$'\n└─┤'
function top_prompt_info()
{
echo "${${KEYMAP/vicmd/$(red_chars ${top_box})}/(main|viins)/${top_box}}"
local MODE_INDICATOR="%{$fg[red]%}${top_box}%{$reset_color%}"
local PROMPTINFO=$(vi_mode_prompt_info)
if [[ -z ${PROMPTINFO} ]]
then
echo "${top_box}"
else
echo "${PROMPTINFO}"
fi
}
function middle_prompt_info()
{
echo "${${KEYMAP/vicmd/$(red_chars ${middle_box})}/(main|viins)/${middle_box}}"
local MODE_INDICATOR="%{$fg[red]%}${middle_box}%{$reset_color%}"
local PROMPTINFO=$(vi_mode_prompt_info)
if [[ -z ${PROMPTINFO} ]]
then
echo "${middle_box}"
else
echo "${PROMPTINFO}"
fi
}
function bottom_prompt_info()
{
echo "${${KEYMAP/vicmd/$(red_chars ${bottom_box})}/(main|viins)/${bottom_box}}"
local MODE_INDICATOR="%{$fg[red]%}${bottom_box}%{$reset_color%}"
local PROMPTINFO=$(vi_mode_prompt_info)
if [[ -z ${PROMPTINFO} ]]
then
echo "${bottom_box}"
else
echo "${PROMPTINFO}"
fi
}
local top_prompt='$(top_prompt_info)'
local middle_prompt='$(middle_prompt_info)'
Expand Down

0 comments on commit 2c73207

Please sign in to comment.