Skip to content

How to customize dressing windows with highlight groups using winhighlight? #187

Answered by davisssamuel
davisssamuel asked this question in Q&A
Discussion options

You must be logged in to vote

I think I may have figured it out myself. I defined my own highlight groups for dressing and then used winhighlight to overwrite NormalFloat, FloatBorder, and FloatTitle with those groups in the dressing config.

-- colorscheme.lua

DressingNormalFloat = { fg = colors.fg, bg = colors.bg }
DressingFloatBorder = { fg = colors.fg, bg = colors.bg }
DressingFloatTitle = { fg = colors.fg, bg = colors.bg }
-- dressing.lua

input = {
  win_options = {
    winhighlight = 'NormalFloat:DressingNormalFloat,FloatBorder:DressingFloatBorder,FloatTitle:DressingFloatTitle'
  }
}

I'm not sure if this is the correct way to modify the dressing window highlights, but it works for me.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by stevearc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant