Skip to content

Remove background from borders / Add borders to preview #620

Answered by idr4n
Zykatious asked this question in Q&A
Discussion options

You must be logged in to vote

I have done with this:

      completion = {
        list = {
          selection = "auto_insert",
        },
        documentation = {
          auto_show = true,
          auto_show_delay_ms = 200,
          window = {
            border = "rounded",
            winhighlight = "Normal:Normal,FloatBorder:FloatBorder,CursorLine:BlinkCmpDocCursorLine,Search:None",
          },
        },
        menu = {
          border = "rounded",
          draw = { gap = 2 },
          winhighlight = "Normal:Normal,FloatBorder:FloatBorder,CursorLine: BlinkCmpMenuSelection,Search:None",
        },

Change FloatBorder:FloatBorder to FloatBorder:<Your Highlight Group>. Note that the default winhighlight is:

--

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Zykatious
Comment options

Answer selected by Zykatious
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants