mirror of
https://github.com/neovim/neovim.git
synced 2026-01-07 11:57:56 +10:00
test(ui/popupmenu_spec): make highlights more consistent
This commit is contained in:
@@ -1160,25 +1160,25 @@ describe('builtin popupmenu', function()
|
||||
screen = Screen.new(32, 20)
|
||||
screen:set_default_attr_ids({
|
||||
-- popup selected item / scrollbar track
|
||||
['s'] = { background = Screen.colors.WebGray },
|
||||
s = { background = Screen.colors.Grey },
|
||||
-- popup non-selected item
|
||||
['n'] = { background = Screen.colors.LightMagenta },
|
||||
n = { background = Screen.colors.Plum1 },
|
||||
-- popup scrollbar knob
|
||||
['c'] = { background = Screen.colors.Grey0 },
|
||||
c = { background = Screen.colors.Black },
|
||||
[1] = { bold = true, foreground = Screen.colors.Blue },
|
||||
[2] = { bold = true },
|
||||
[3] = { reverse = true },
|
||||
[4] = { bold = true, reverse = true },
|
||||
[5] = { bold = true, foreground = Screen.colors.SeaGreen },
|
||||
[6] = { foreground = Screen.colors.Grey100, background = Screen.colors.Red },
|
||||
[6] = { foreground = Screen.colors.White, background = Screen.colors.Red },
|
||||
[7] = { background = Screen.colors.Yellow }, -- Search
|
||||
[8] = { foreground = Screen.colors.Red },
|
||||
kn = { foreground = Screen.colors.Red, background = Screen.colors.Magenta },
|
||||
ks = { foreground = Screen.colors.Red, background = Screen.colors.Grey },
|
||||
xn = { foreground = Screen.colors.White, background = Screen.colors.Magenta },
|
||||
kn = { foreground = Screen.colors.Red, background = Screen.colors.Plum1 },
|
||||
xs = { foreground = Screen.colors.Black, background = Screen.colors.Grey },
|
||||
mn = { foreground = Screen.colors.Blue, background = Screen.colors.Magenta },
|
||||
xn = { foreground = Screen.colors.White, background = Screen.colors.Plum1 },
|
||||
ms = { foreground = Screen.colors.Blue, background = Screen.colors.Grey },
|
||||
mn = { foreground = Screen.colors.Blue, background = Screen.colors.Plum1 },
|
||||
})
|
||||
screen:attach({ ext_multigrid = multigrid })
|
||||
end)
|
||||
@@ -3558,7 +3558,7 @@ describe('builtin popupmenu', function()
|
||||
exec([[
|
||||
set wildoptions=pum,fuzzy
|
||||
hi PmenuMatchSel guifg=Blue guibg=Grey
|
||||
hi PmenuMatch guifg=Blue guibg=Magenta
|
||||
hi PmenuMatch guifg=Blue guibg=Plum1
|
||||
]])
|
||||
|
||||
feed(':sign plc<Tab>')
|
||||
@@ -4704,9 +4704,9 @@ describe('builtin popupmenu', function()
|
||||
-- oldtest: Test_pum_highlights_custom()
|
||||
it('custom highlight groups', function()
|
||||
exec([[
|
||||
hi PmenuKind guifg=Red guibg=Magenta
|
||||
hi PmenuKind guifg=Red guibg=Plum1
|
||||
hi PmenuKindSel guifg=Red guibg=Grey
|
||||
hi PmenuExtra guifg=White guibg=Magenta
|
||||
hi PmenuExtra guifg=White guibg=Plum1
|
||||
hi PmenuExtraSel guifg=Black guibg=Grey
|
||||
]])
|
||||
feed('iaw<C-X><C-u>')
|
||||
@@ -4758,7 +4758,7 @@ describe('builtin popupmenu', function()
|
||||
set omnifunc=Omni_test
|
||||
set completeopt=menu,noinsert,fuzzy
|
||||
hi PmenuMatchSel guifg=Blue guibg=Grey
|
||||
hi PmenuMatch guifg=Blue guibg=Magenta
|
||||
hi PmenuMatch guifg=Blue guibg=Plum1
|
||||
]])
|
||||
feed('i<C-X><C-O>')
|
||||
local pum_start = [[
|
||||
|
||||
Reference in New Issue
Block a user