Open Lalit64 opened 2 years ago
You can change CursorLine
highlight see https://github.com/hrsh7th/nvim-cmp/blob/main/lua/cmp/config/window.lua#L7
@hrsh7th It doesn't work. It still remains the same color while changing the background of the active editor line but not the active cmp item.
Edit: Thanks for reopening
Hm...
The nvim docs says following
CursorLine Screen-line at the cursor, when 'cursorline' is set. Low-priority if foreground (ctermfg OR guifg) is not set.
The result of :hi CursorLine
with your init.vim
CursorLine xxx cterm=underline guibg=#282c34
So the CursorLine is low-priority (I think).
In fact, the CursorLine
does not shown even if cursorline
option is true and cursor is contains the normal window...
@hrsh7th could you try My full config. I am getting this issue with my full config.
Same issue, with bordered: without bordered:
my output of CursorLine:
:hi CursorLine
CursorLine xxx guibg=#525156
Edit: Seems like a color scheme problem, on aura it's broken, but on tokyonight it's ok.
Edit: CmpItemAbbr
highlight was linked to something same as Pmenu
and Normal
and deleting CmpItemAbbr
highlight or removing it's background highlight fixed the problem, idk why without bordered it was fine.
FAQ
Announcement
Minimal reproducible full config
Description
When I use cmp.config.window.bordered() it changes active item highlight bg for the completion menu.
Steps to reproduce
window
section from cmp config.Expected behavior
Expected color is around #2d323b (not exact)
Actual behavior
Actual color is around #52565e (not exact) (too bright)
Additional context
My complete config is at https://github.com/Lalit64/HydroVim