Shade.nvim icon indicating copy to clipboard operation
Shade.nvim copied to clipboard

Unshaded zones on window resize

Open donnillo opened this issue 2 years ago • 2 comments

Hi! If I narrow the size of active window/buffer/split, a newly opened part of inactive window appears to be unshaded. I guess, some autocmd needs to be added to reshade inactive windows/buffers/splits on every resize image

donnillo avatar Feb 05 '22 12:02 donnillo

That should already be in place. How is it you're resizing splits? It works here with mouse dragging the separator, and with the <c-w> controls.

sunjon avatar Feb 07 '22 02:02 sunjon

I'm using these keymaps to resize with Ctrl+Arrows

local keymap = vim.api.nvim_set_keymap
local nrmaps = { noremap = true, silent = true }

-- Resize with arrows
keymap("n", "<C-Up>", ":resize +2<CR>", nrmaps)
keymap("n", "<C-Down>", ":resize -2<CR>", nrmaps)
keymap("n", "<C-Left>", ":vertical resize -2<CR>", nrmaps)
keymap("n", "<C-Right>", ":vertical resize +2<CR>", nrmaps)

donnillo avatar Feb 08 '22 05:02 donnillo