neovim: make completion menu more colorful

Also change Telescope match highlight to be the same as nvim-cmp
This commit is contained in:
FollieHiyuki 2021-10-09 11:32:01 +07:00
parent c9941850a2
commit 7991b12511
No known key found for this signature in database
GPG Key ID: 813CF484F4993419
3 changed files with 4 additions and 5 deletions

View File

@ -304,8 +304,8 @@ local function highlight_plugins()
hi('CmpItemAbbr', c.fg, '', '', '') hi('CmpItemAbbr', c.fg, '', '', '')
hi('CmpItemAbbrMatch', c.yellow, '', '', '') hi('CmpItemAbbrMatch', c.yellow, '', '', '')
hi('CmpItemAbbrMatchFuzzy', c.yellow, '', '', '') hi('CmpItemAbbrMatchFuzzy', c.yellow, '', '', '')
hi('CmpItemKind', c.fg, '', '', '') hi('CmpItemKind', c.orange, '', '', '')
hi('CmpItemMenu', c.fg, '', '', '') hi('CmpItemMenu', c.blue, '', '', '')
-- Gitsigns -- Gitsigns
hi('GitSignsAddNr' , c.green , '', '', '') hi('GitSignsAddNr' , c.green , '', '', '')
@ -378,7 +378,7 @@ local function highlight_plugins()
hi('TelescopeSelection', c.fg, c.grey2, '', '') hi('TelescopeSelection', c.fg, c.grey2, '', '')
hi('TelescopeMultiSelection', c.fg, c.grey2, 'bold', '') hi('TelescopeMultiSelection', c.fg, c.grey2, 'bold', '')
hi('TelescopeSelectionCaret', c.red, c.grey2, 'bold', '') hi('TelescopeSelectionCaret', c.red, c.grey2, 'bold', '')
hi('TelescopeMatching', c.purple, '', 'bold', '') hi('TelescopeMatching', c.yellow, '', 'bold', '')
-- Neogit -- Neogit
hi('NeogitBranch', c.purple, '', '', '') hi('NeogitBranch', c.purple, '', '', '')

View File

@ -10,7 +10,6 @@ function M.cmp_conf()
end end
cmp.setup { cmp.setup {
experimental = {custom_menu = true}, -- Use custom highlightng for the floating completion menu
formatting = { formatting = {
format = function(entry, vim_item) format = function(entry, vim_item)
local lspkind_icons = { local lspkind_icons = {