How to customise float window? #9
-
How do I change the highlights from the float windows? I would like to change the background. I'd like to change the color and remove the transparency. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
There are three categories of floating windows that have config options. There's the "form" floats that open when you're launching or editing a task, the "confirm" float which only shows up when saving a task, and the "task_win" task output float that is opened from the "open float" action. All of these are configured in the call to require("overseer").setup({
form = {
win_opts = {
winblend = 0,
winhighlight = "NormalFloat:MyCustomHighlight",
},
},
confirm = {
win_opts = {
winblend = 0,
winhighlight = "NormalFloat:MyCustomHighlight",
},
},
task_win = {
win_opts = {
winblend = 0,
winhighlight = "NormalFloat:MyCustomHighlight",
},
},
}) |
Beta Was this translation helpful? Give feedback.
There are three categories of floating windows that have config options. There's the "form" floats that open when you're launching or editing a task, the "confirm" float which only shows up when saving a task, and the "task_win" task output float that is opened from the "open float" action.
All of these are configured in the call to
setup
, and I believe the options you are looking for is to setwinblend = 0
(see:help winblend
) andwinhighlight = "NormalFloat:MyCustomHighlight"
(see:help winhighlight
).