Skip to content

Commit

Permalink
fix(windows): add winhl instead of overwriting. Can also be set to ""…
Browse files Browse the repository at this point in the history
… to prevent edge changing winhl. Fixes #15
  • Loading branch information
folke committed Jun 8, 2023
1 parent 8f8e870 commit 779fdd8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lua/edgy/window.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ function M.new(win, view)
wo.winbar = nil
end
for k, v in pairs(wo) do
-- special treatment for winhighlight
-- add to existing winhighlight
if k == "winhighlight" then
local whl = vim.wo[self.win].winhighlight
if whl ~= "" then
v = whl .. "," .. v
end
end
vim.api.nvim_set_option_value(k, v, { scope = "local", win = win })
end
vim.api.nvim_create_autocmd("WinClosed", {
Expand Down

0 comments on commit 779fdd8

Please sign in to comment.