-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix!: drop specialized text highlight groups (#30)
Removing DressingInputText and DressingSelectText highlight groups that were added for #8. I added them before I learned about winhighlight, and it turns out that winhighlight is the better way to do this. Previously I was using `nvim_buf_add_highlight` to directly add the highlight group, but that has multiple downsides (can't highlight bg of regions with no text, overrides other relevate highlight groups e.g. CursorLine). None of that is needed because Neovim will be setting the highlight group of this text to NormalFloat, and if the user wants to customize it we already expose an easy option in config to do `winhighlight = "NormalFloat:MyCustomHighlightGroup"`.
- Loading branch information
Showing
3 changed files
with
15 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
require("dressing").patch() | ||
vim.cmd([[highlight default link FloatTitle FloatBorder]]) | ||
vim.cmd([[highlight default link DressingSelectText NormalFloat]]) | ||
vim.cmd([[highlight default link DressingInputText NormalFloat]]) |