mirror of
https://github.com/folke/snacks.nvim
synced 2025-12-23 08:47:57 +00:00
feat(win): added default hl groups for windows
This commit is contained in:
parent
2bf3691015
commit
8c0f10b9da
1 changed files with 7 additions and 3 deletions
|
|
@ -37,7 +37,7 @@ local defaults = {
|
||||||
position = "float",
|
position = "float",
|
||||||
minimal = true,
|
minimal = true,
|
||||||
wo = {
|
wo = {
|
||||||
winhighlight = "Normal:NormalFloat,NormalNC:NormalFloat",
|
winhighlight = "Normal:SnacksNormal,NormalNC:SnacksWinBarNC,WinBar:SnacksWinBar,WinBarNC:SnacksWinBarNC",
|
||||||
},
|
},
|
||||||
bo = {},
|
bo = {},
|
||||||
keys = {
|
keys = {
|
||||||
|
|
@ -117,7 +117,11 @@ local win_opts = {
|
||||||
"zindex",
|
"zindex",
|
||||||
}
|
}
|
||||||
|
|
||||||
vim.api.nvim_set_hl(0, "SnacksWinBackdrop", { bg = "#000000", default = true })
|
vim.api.nvim_set_hl(0, "SnacksBackdrop", { bg = "#000000", default = true })
|
||||||
|
vim.api.nvim_set_hl(0, "SnacksNormal", { link = "NormalFloat", default = true })
|
||||||
|
vim.api.nvim_set_hl(0, "SnacksNormalNC", { link = "NormalFloat", default = true })
|
||||||
|
vim.api.nvim_set_hl(0, "SnacksWinBar", { link = "Title", default = true })
|
||||||
|
vim.api.nvim_set_hl(0, "SnacksWinBarNC", { link = "SnacksWinBar", default = true })
|
||||||
|
|
||||||
local id = 0
|
local id = 0
|
||||||
|
|
||||||
|
|
@ -394,7 +398,7 @@ function M:drop()
|
||||||
focusable = false,
|
focusable = false,
|
||||||
zindex = self.opts.zindex - 1,
|
zindex = self.opts.zindex - 1,
|
||||||
wo = {
|
wo = {
|
||||||
winhighlight = "Normal:SnacksWinBackdrop",
|
winhighlight = "Normal:SnacksBackdrop",
|
||||||
winblend = self.opts.backdrop,
|
winblend = self.opts.backdrop,
|
||||||
},
|
},
|
||||||
bo = {
|
bo = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue