2020-09-20 05:30:12 +03:00
|
|
|
function _tide_item_vi_mode
|
2021-03-02 20:46:40 +03:00
|
|
|
test "$fish_key_bindings" != fish_default_key_bindings && switch $fish_bind_mode
|
2021-05-23 22:42:31 +03:00
|
|
|
case insert
|
2020-12-26 03:32:03 +03:00
|
|
|
case default
|
2021-05-20 18:46:39 +03:00
|
|
|
set -g tide_vi_mode_bg_color $tide_vi_mode_bg_color_default
|
2021-05-23 22:42:31 +03:00
|
|
|
tide_vi_mode_color=$tide_vi_mode_color_default _tide_print_item vi_mode $tide_vi_mode_icon_default
|
2020-12-26 03:32:03 +03:00
|
|
|
case replace replace_one
|
2021-05-20 18:46:39 +03:00
|
|
|
set -g tide_vi_mode_bg_color $tide_vi_mode_bg_color_replace
|
2021-05-23 22:42:31 +03:00
|
|
|
tide_vi_mode_color=$tide_vi_mode_color_replace _tide_print_item vi_mode $tide_vi_mode_icon_replace
|
2020-12-26 03:32:03 +03:00
|
|
|
case visual
|
2021-05-20 18:46:39 +03:00
|
|
|
set -g tide_vi_mode_bg_color $tide_vi_mode_bg_color_visual
|
2021-05-23 22:42:31 +03:00
|
|
|
tide_vi_mode_color=$tide_vi_mode_color_visual _tide_print_item vi_mode $tide_vi_mode_icon_visual
|
2020-09-20 05:30:12 +03:00
|
|
|
end
|
2021-03-02 20:46:40 +03:00
|
|
|
end
|