iceberg.vim icon indicating copy to clipboard operation
iceberg.vim copied to clipboard

Floating windows decoration highlighting problem

Open fragov opened this issue 2 years ago • 4 comments

Some floating windows (probably those, who use NormalFloat highlight) have black borders on black background: Capto_Capture 2022-04-28_12-12-24_PM

You may see same problem on your screenshot, where you have used TSHighlightCapturesUnderCursor image

fragov avatar Apr 28 '22 09:04 fragov

Do you know what the border is? I mainly use Vim and don't know much about it.

cocopon avatar Apr 28 '22 15:04 cocopon

Window on screenshot is created by https://github.com/stevearc/dressing.nvim plugin. It has winhighlight option in config. I did found in source code of it next message: Set winhighlight="NormalFloat:MyHighlightGroup" instead, so I believe it is "NormalFloat". They use this component for window: https://github.com/MunifTanjim/nui.nvim/tree/main/lua/nui/input It has such code in config:

win_options = {
    winhighlight = "Normal:Normal",
  },

fragov avatar Apr 29 '22 13:04 fragov

NormalFloat is for background of the floating window. According to my research, FloatBorder is appropriate for this case.

image

I'll add color definitions around it, please wait...

cocopon avatar May 01 '22 08:05 cocopon

any updates? :bow:

hori-ryota avatar Oct 23 '23 07:10 hori-ryota