nvim-cmp icon indicating copy to clipboard operation
nvim-cmp copied to clipboard

Possible missing documentation on "cmp-config.view"

Open LamprosPitsillos opened this issue 2 years ago • 6 comments

https://github.com/hrsh7th/nvim-cmp/blob/1001683bee3a52a7b7e07ba9d391472961739c7b/doc/cmp.txt#L522

Currently, the possible configurations are:   
<<NOTHING>>                                               

LamprosPitsillos avatar Mar 09 '22 13:03 LamprosPitsillos

Probably just this: https://github.com/hrsh7th/nvim-cmp/wiki/Menu-Appearance#menu-type

p0da avatar Mar 12 '22 23:03 p0da

I'll organize the configuration schema.

hrsh7th avatar Mar 15 '22 02:03 hrsh7th

Is there a way to target the highlight color of the border? My colorscheme doesn't have a distinct enough menu background so I use the border to help but I'd love to make it a bit more faint.

studious avatar Jun 15 '22 23:06 studious

It seems nothing. It should be requested to neovim itself.

Shougo avatar Jun 15 '22 23:06 Shougo

After digging around the source I found the following and traced it back to where I could set it.

https://github.com/hrsh7th/nvim-cmp/blob/main/lua/cmp/config/window.lua#L7

  window = {
    completion = cmp.config.window.bordered({
      winhighlight = 'Normal:Normal,FloatBorder:FloatBorder,CursorLine:Visual,Search:None'
    }),
    documentation = cmp.config.window.bordered(),
  },

So I can pass my own winhighlight in and relink the FloatBorder to get what I want.

studious avatar Jun 16 '22 07:06 studious

Oh, it seems implemented

Shougo avatar Jun 16 '22 07:06 Shougo