stevearc / dressing.nvim

Neovim plugin to improve the default vim.ui interfaces
MIT License
1.73k stars 32 forks source link

Highlights #8

Closed horseinthesky closed 2 years ago

horseinthesky commented 2 years ago

Is it possible to set highlights for insert/select floating windows borders and text messages?

stevearc commented 2 years ago

You can customize the window border highlights by setting FloatBorder (by default it links to VertSplit, see :help nvim_open_win). I just made a commit that adds the FloatTitle highlight group that will highlight the window title for the input and the built-in select windows. By default it links to FloatBorder. There's another commit that highlights the text in the built-in vim.ui.select window with DressingSelectText, which links to Normal by default. Does that cover everything you wanted?

horseinthesky commented 2 years ago

Yeap. Now I can dress in to match my colorscheme. Thank you =)

meijieru commented 2 years ago

What about the input text area?

stevearc commented 2 years ago

Added a DressingInputText highlight group as well. Note that if the caller of vim.ui.input supplies a highlight function in the opts we will use that instead.

meijieru commented 2 years ago

It seems that the highlight group doesn't affect the background. image Any way to make the gray area disappear?

stevearc commented 2 years ago

I believe that the background of windows is typically set via winhighlight (e.g. set winhighlight=Normal:MyNewGroup). You can already do this with a FileType autocmd, but I'll expose a config option as well.

meijieru commented 2 years ago

Thx.