Bug fix Theme not rendered properly (#54)

This commit is contained in:
Shadman 2021-01-09 17:01:02 +06:00 committed by GitHub
parent 2d39a243e7
commit 72e5c71ebd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 4 deletions

View File

@ -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