doc: more complete example for winhighlight (#101)

This commit is contained in:
Steven Arcangeli 2023-06-23 10:43:21 -07:00
parent 5fb5cce0cb
commit 1cbc4eef2e
1 changed files with 10 additions and 3 deletions

View File

@ -298,9 +298,16 @@ require('dressing').setup({
## Highlights
A common way to adjust the highlighting of just the dressing windows is by
providing a `winhighlight` option in the config. For example, `winhighlight = 'NormalFloat:DiagnosticError'`
would change the default text color in the dressing windows. See `:help winhighlight`
for more details.
providing a `winhighlight` option in the config. See `:help winhighlight`
for more details. Example:
```lua
require('dressing').setup({
input = {
winhighlight = 'NormalFloat:DiagnosticError'
}
})
```
## Advanced configuration