lens.vim icon indicating copy to clipboard operation
lens.vim copied to clipboard

Resize prefers the right side without animate.vim

Open dirn opened this issue 5 years ago • 1 comments

#6 reported that the leftmost split is often left untouched when resizing vertical splits with animate.vim. That issue was fixed upstream. The behavior persists, however, when using lens.vim to handle resizing.

Ideally (at least for me) the active window would be resized as configured with other splits being distributed evenly (see: https://github.com/camspiers/lens.vim/issues/6#issuecomment-591138185).

dirn avatar Feb 28 '20 16:02 dirn

I have fixed it with adding following lines to lens#run function

    setlocal winfixheight
    setlocal winfixwidth
    wincmd =
    setlocal nowinfixheight
    setlocal nowinfixwidth

I can create a pull request...

habamax avatar Apr 06 '20 15:04 habamax