Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unshaded zones on window resize #28

Open
donnillo opened this issue Feb 5, 2022 · 2 comments
Open

Unshaded zones on window resize #28

donnillo opened this issue Feb 5, 2022 · 2 comments

Comments

@donnillo
Copy link

donnillo commented Feb 5, 2022

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

@sunjon
Copy link
Owner

sunjon commented Feb 7, 2022

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.

@donnillo
Copy link
Author

donnillo commented Feb 8, 2022

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants