iceberg.vim
iceberg.vim copied to clipboard
Floating windows decoration highlighting problem
Some floating windows (probably those, who use NormalFloat highlight) have black borders on black background:
You may see same problem on your screenshot, where you have used TSHighlightCapturesUnderCursor
Do you know what the border is? I mainly use Vim and don't know much about it.
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",
},
NormalFloat
is for background of the floating window. According to my research, FloatBorder
is appropriate for this case.
![image](https://user-images.githubusercontent.com/602961/166137382-53802517-94c6-4794-ac05-45b9deb95ac5.png)
I'll add color definitions around it, please wait...
any updates? :bow: