From f607d0df3eede096f480a8960b9058d6f584806c Mon Sep 17 00:00:00 2001 From: Andrei Heidelbacher Date: Thu, 1 May 2025 05:49:10 +0200 Subject: [PATCH] fix(blink.cmp): set BlinkCmpDoc background to palette.highlight_low Although the default of `NormalFloat` is a sensible value for the documentation float, it has the same highlight as `Pmenu`, which means that on narrow displays where the documentation window is shown below the completion menu, it is not always clear where the completion items end and where the documentation begins. Setting the highlight to `palette.highlight_low` (compared to the default of `palette.surface`) adds a visual cue to separate the completion menu from the documentation window, without straying too much from the defaults. --- lua/rose-pine.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/rose-pine.lua b/lua/rose-pine.lua index 600ac4e..4e9c665 100644 --- a/lua/rose-pine.lua +++ b/lua/rose-pine.lua @@ -977,6 +977,8 @@ local function set_highlights() AvanteReversedThirdTitle = { fg = palette.iris }, -- Saghen/blink.cmp + BlinkCmpDoc = { bg = palette.highlight_low }, + BlinkCmpDocSeparator = { bg = palette.highlight_low }, BlinkCmpDocBorder = { fg = palette.highlight_high }, BlinkCmpGhostText = { fg = palette.muted },