2020-09-20 05:30:12 +03:00
|
|
|
function _tide_item_vi_mode
|
|
|
|
if test "$fish_key_bindings" != 'fish_default_key_bindings'
|
|
|
|
switch $fish_bind_mode
|
|
|
|
case default
|
|
|
|
set -g tide_vi_mode_bg_color $tide_vi_mode_default_bg_color
|
2020-09-21 21:21:23 +03:00
|
|
|
set_color $tide_vi_mode_default_color
|
|
|
|
printf '%s' $tide_vi_mode_default_icon
|
2020-09-20 05:30:12 +03:00
|
|
|
case insert
|
|
|
|
set -g tide_vi_mode_bg_color $tide_vi_mode_insert_bg_color
|
2020-09-21 21:21:23 +03:00
|
|
|
set_color $tide_vi_mode_insert_color
|
|
|
|
printf '%s' $tide_vi_mode_insert_icon
|
2020-09-20 05:30:12 +03:00
|
|
|
case replace replace_one
|
|
|
|
set -g tide_vi_mode_bg_color $tide_vi_mode_replace_bg_color
|
2020-09-21 21:21:23 +03:00
|
|
|
set_color $tide_vi_mode_replace_color
|
|
|
|
printf '%s' $tide_vi_mode_replace_icon
|
2020-09-20 05:30:12 +03:00
|
|
|
case visual
|
|
|
|
set -g tide_vi_mode_bg_color $tide_vi_mode_visual_bg_color
|
2020-09-21 21:21:23 +03:00
|
|
|
set_color $tide_vi_mode_visual_color
|
|
|
|
printf '%s' $tide_vi_mode_visual_icon
|
2020-09-20 05:30:12 +03:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|