added select mode
This commit is contained in:
parent
4cf4ac814d
commit
84b554f3bf
|
@ -11,6 +11,7 @@ local function mode()
|
||||||
['Rv'] = 'V-REPLACE',
|
['Rv'] = 'V-REPLACE',
|
||||||
['c'] = 'COMMAND',
|
['c'] = 'COMMAND',
|
||||||
['t'] = 'TERMINAL',
|
['t'] = 'TERMINAL',
|
||||||
|
['s'] = 'SELECT',
|
||||||
}
|
}
|
||||||
return mode_map[vim.fn.mode()]
|
return mode_map[vim.fn.mode()]
|
||||||
end
|
end
|
||||||
|
|
|
@ -48,6 +48,8 @@ function M.format_highlight(is_focused, highlight_group)
|
||||||
highlight_group = highlight_group .. '_visual'
|
highlight_group = highlight_group .. '_visual'
|
||||||
elseif mode == 'V-REPLACE' then
|
elseif mode == 'V-REPLACE' then
|
||||||
highlight_group = highlight_group .. '_replace'
|
highlight_group = highlight_group .. '_replace'
|
||||||
|
elseif mode == 'SELECT' then
|
||||||
|
highlight_group = highlight_group .. '_terminal'
|
||||||
else
|
else
|
||||||
highlight_group = highlight_group .. '_' .. mode:lower()
|
highlight_group = highlight_group .. '_' .. mode:lower()
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue