Bug fix Theme not rendered properly (#54)
This commit is contained in:
parent
2d39a243e7
commit
72e5c71ebd
|
@ -44,12 +44,16 @@ function M.format_highlight(is_focused, highlight_group)
|
||||||
if not is_focused then
|
if not is_focused then
|
||||||
highlight_group = highlight_group .. [[_inactive]]
|
highlight_group = highlight_group .. [[_inactive]]
|
||||||
else
|
else
|
||||||
if mode == 'V-BLOCK' or mode == 'V-LINE' then
|
if mode == 'VISUAL' or mode == 'V-BLOCK' or mode == 'V-LINE' or mode == 'SELECT' then
|
||||||
highlight_group = highlight_group .. '_visual'
|
highlight_group = highlight_group .. '_visual'
|
||||||
elseif mode == 'V-REPLACE' then
|
elseif mode == 'V-REPLACE' or mode == 'REPLACE' then
|
||||||
highlight_group = highlight_group .. '_replace'
|
highlight_group = highlight_group .. '_replace'
|
||||||
elseif mode == 'SELECT' then
|
elseif mode == 'INSERT' then
|
||||||
highlight_group = highlight_group .. '_visual'
|
highlight_group = highlight_group .. '_insert'
|
||||||
|
elseif mode == 'COMMAND' then
|
||||||
|
highlight_group = highlight_group .. '_command'
|
||||||
|
elseif mode == 'TERMINAL' then
|
||||||
|
highlight_group = highlight_group .. '_terminal'
|
||||||
else
|
else
|
||||||
highlight_group = highlight_group .. '_normal'
|
highlight_group = highlight_group .. '_normal'
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue