Skip to content

Commit

Permalink
fix: define NormalFloat and FloatBorder
Browse files Browse the repository at this point in the history
This brings popup windows more in line with each other. The change was
prompted by `ChatGPT.nvim` plugin that use telescope as a dependency, but
the borders looked off.

`NormalFloat` was linked to `Pmenu`, `Pmenu` is used for completion, and
needs to be a different background color than NormalFloat, so I set
NormalFloat to srcery_black

`FloatBorder` was linked via `FloatBorder` -> `WinSeparator` ->
`VertSplit` which is set to `bright_white`, but Telescope uses white as
the border color, so I define that for `FloatBorder` as well

```viml
call s:HL('VertSplit', s:bright_white, g:srcery_bg)
```
  • Loading branch information
roosta committed Feb 4, 2024
1 parent 3fd1f5c commit 83e4f49
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions colors/srcery.vim
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,9 @@ call s:HL('SrceryXgray6', s:xgray6)
"
call s:HL('Normal', s:bright_white, g:srcery_bg)

call s:HL('NormalFloat', s:bright_white, g:srcery_bg)
call s:HL('FloatBorder', s:white, g:srcery_bg)

if v:version >= 700
" Screen line that the cursor is
call s:HL('CursorLine', s:none, s:xgray2)
Expand Down

0 comments on commit 83e4f49

Please sign in to comment.