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

Image doesn't resize when opening splits

Open technicalpickles opened this issue 2 years ago • 1 comments
trafficstars

Resizing works correctly on resize of nvim (ie the frontend or terminal), but doesn't work when opening a split:

https://user-images.githubusercontent.com/159/212483682-fcd1d481-a12d-49a7-b482-0a2230f05a5e.mov

technicalpickles avatar Jan 14 '23 16:01 technicalpickles

Looking over https://neovim.io/doc/user/autocmd.html#autocmd-event ... I wondering if including more autocommands would help?

https://github.com/princejoogie/chafa.nvim/blob/792c8f4f0e86b5e27c3602be4614f886f3a12a5a/lua/chafa/init.lua#L61-L63

WinEnter:

After entering another window. Not done for the first window, when Vim has just started. Useful for setting the window height. If the window is for another buffer, Vim executes the BufEnter autocommands after the WinEnter autocommands. Note: For split and tabpage commands the WinEnter event is triggered after the split or tab command but before the file is loaded.

technicalpickles avatar Jan 14 '23 16:01 technicalpickles