fix(hl): use NormalFloat instead of Normal

This commit is contained in:
Sebastian Lyng Johansen 2022-07-14 19:17:56 +02:00 committed by Lewis Russell
parent bb6c3bf6f5
commit 48ac827b9f
2 changed files with 10 additions and 10 deletions

View File

@ -634,7 +634,7 @@ M.preview_hunk = noautocmd(function()
local lines_fmt = {
{ { 'Hunk <hunk_no> of <num_hunks>', 'Title' } },
{ { '<hunk>', 'Normal' } },
{ { '<hunk>', 'NormalFloat' } },
}
insert_hunk_hlmarks(lines_fmt, hunk)
@ -715,21 +715,21 @@ local function create_blame_fmt(is_committed, full)
{ '<abbrev_sha> ', 'Directory' },
{ '<author> ', 'MoreMsg' },
{ '(<author_time:%Y-%m-%d %H:%M>)', 'Label' },
{ ':', 'Normal' },
{ ':', 'NormalFloat' },
}
if full then
return {
header,
{ { '<body>', 'Normal' } },
{ { '<body>', 'NormalFloat' } },
{ { 'Hunk <hunk_no> of <num_hunks>', 'Title' }, { ' <hunk_head>', 'LineNr' } },
{ { '<hunk>', 'Normal' } },
{ { '<hunk>', 'NormalFloat' } },
}
end
return {
header,
{ { '<summary>', 'Normal' } },
{ { '<summary>', 'NormalFloat' } },
}
end

View File

@ -634,7 +634,7 @@ M.preview_hunk = noautocmd(function()
local lines_fmt = {
{{'Hunk <hunk_no> of <num_hunks>', 'Title'}},
{{'<hunk>', 'Normal' }}
{{'<hunk>', 'NormalFloat' }}
}
insert_hunk_hlmarks(lines_fmt, hunk)
@ -715,21 +715,21 @@ local function create_blame_fmt(is_committed: boolean, full: boolean): popup.Lin
{'<abbrev_sha> ', 'Directory'},
{'<author> ', 'MoreMsg'},
{'(<author_time:%Y-%m-%d %H:%M>)', 'Label'},
{':', 'Normal'}
{':', 'NormalFloat'}
}
if full then
return {
header,
{{'<body>', 'Normal'}},
{{'<body>', 'NormalFloat'}},
{{'Hunk <hunk_no> of <num_hunks>', 'Title'}, {' <hunk_head>', 'LineNr'}},
{{'<hunk>', 'Normal'}}
{{'<hunk>', 'NormalFloat'}}
}
end
return {
header,
{{'<summary>', 'Normal'}}
{{'<summary>', 'NormalFloat'}}
}
end