2
u/davidpdrsn Feb 22 '20
Looks really cool! I’m gonna try it. By the way how do you change the background color of the active window?
1
3
5
u/ChintusTheGreat Feb 22 '20
Damn, never thought Vim/Neovim could do something like that. Well, now that I am thinking about it, Vim/Neovim can do just about anything one wants. Nice job dude.
1
u/syslino Feb 25 '20
Sorry, I don't want to be rude, but why would I need a plugin for this? Okay - fancy animations. But this could be easily achieved with some autocmds - minus the fancy-bling of course - or am I missing something?
I did not install it, as I have some similar functionality and try to keep my plugged clean.
Please do not interpret this as critique, I'm just curious!
1
u/metanat Feb 25 '20
If some easy autocmds work for you then totally go for it! This was created out of my desire to have something that works for me, especially when I am on smaller screens but still want to retain a splits layout.
Would you like to share your autocmds?
1
u/syslino Feb 25 '20
I don't have autocmds for this, as I do not need these kind of resizing happening automatically. I'm a simple man, I use some really simple bindings for this. :-)
If I want to have a big view on a file I have a binding for
:tabopenand:tabclose, toggleable per global var.Mostly this is enough. There are some commands acccepting a count, like creating splits either
:vsor:hsfor each file (or the provided count).Really nothing too fancy, mostly one-liners. But for me it's perfectly enough.
I really was just curious! I can provide some snippets, if you are interested - and when I'm back home and find some time!
1
u/pablo1107 Feb 22 '20
Men, you don't know how much I wanted someone to maintain a resizer plugin, I'm currently using roman/golden-ratio. Yours look cool with animate.vim! :D
1
1
1
Feb 22 '20
Only issue I can think of is that it would resize terminal buffers and mess up terminal output.
1
12
u/metanat Feb 22 '20
You can find the plugin at camspiers/lens.vim. The idea behind this plugin is to resize windows (on enter) to a minimal viewport that allows you to see meaningful content if the current size of the window is too small. This is the first plugin I've written that (optionally) integrates with the animate.vim library for window animation, and so provides an example of how other plugin might do that too.