Use NormalFloat instead of Normal for cmp.config.window.bordered()'s winhighlight #2042
Open
2 tasks done
Labels
bug
Something isn't working
FAQ
Announcement
Minimal reproducible full config
Description
The winhighlight does not follow the
:help
docs when using the bordered configuration. the help docs recommends pairingNormalFloat
andFloatBorder
when configuring floating windows, but nvim-cmp is usingNormal
withFloatBorder
.winhighlight is assigned
Normal:Normal
hereI was wondering if it could change the borders window winhighlight to
NormalFloat:NormalFloat,FloatBorder:FloatBorder,CursorLine:Visual,Search:None
orNormal:NormalFloat,FloatBorder:FloatBorder,CursorLine:Visual,Search:None
In order to make backgrounds and borders consistent with the nvim help docs, other floating windows.
This becomes an issue for colorscheme editors when trying to make nvim-cmps's borders the have the same background color as the main nvim-cmp floating window, it breaks the way borders look for all other floating windows, that follow the
:help
docs.Steps to reproduce
use
cmp.config.window_bordered()
Expected behavior
the winhighlight should use
NormalFloat
for the background when using the bordered config``Actual behavior
the winhighlight uses
Normal
for the background when using the the bordered configAdditional context
nvims help docs
:help hl-NormalFloat
says"Normal text in floating windows"
:help hl-FloatBorder
says"Border of floating windows"
related issues
This is an essentially asking for the same thing as issue #748 (merged in PR #1689) but for the main window's fg/bg instead of just the border.
I would be happy to create a PR if this is approved :)
The text was updated successfully, but these errors were encountered: