neovim: make completion menu more colorful

Also change Telescope match highlight to be the same as nvim-cmp
This commit is contained in:
Hoang Nguyen 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('CmpItemAbbrMatch', c.yellow, '', '', '')
hi('CmpItemAbbrMatchFuzzy', c.yellow, '', '', '')
hi('CmpItemKind', c.fg, '', '', '')
hi('CmpItemMenu', c.fg, '', '', '')
hi('CmpItemKind', c.orange, '', '', '')
hi('CmpItemMenu', c.blue, '', '', '')
-- Gitsigns
hi('GitSignsAddNr' , c.green , '', '', '')
@ -378,7 +378,7 @@ local function highlight_plugins()
hi('TelescopeSelection', c.fg, c.grey2, '', '')
hi('TelescopeMultiSelection', c.fg, c.grey2, 'bold', '')
hi('TelescopeSelectionCaret', c.red, c.grey2, 'bold', '')
hi('TelescopeMatching', c.purple, '', 'bold', '')
hi('TelescopeMatching', c.yellow, '', 'bold', '')
-- Neogit
hi('NeogitBranch', c.purple, '', '', '')

View File

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

View File

@ -81,7 +81,7 @@ return packer.startup(function(use)
use {
'p00f/nvim-ts-rainbow',
after = 'nvim-treesitter',
-- Putting config into `treesitter_conf` doesn't work for some reason
-- Putting config into `treesitter_conf` doesn't work for some reason
config = editor.rainbow_conf
}
use {