[FR] resize floating post window
Closed this issue · 4 comments
I love the new floating post window, but it's just a bit too small for my taste, and I don't see any config option to change this. Is it possible that the post.size parameter would apply to the post window as well?
You can use postwin.config.width
and postwin.config.height
at the moment, but I think I'll add postwin.size = {width, height}
as a convenience.
You can see all options for config
in :h nvim_open_win
if you want to override the default settings.
Very nice, I have it set up now exactly how I want it. Just a small correction: the key is postwin.float.config.height
/ width
respectively these days. It took me a while to realize that the x/y coordinates are not pixels, but cols/rows of the terminal. Makes sense...
Great to hear! Yes, that's correct. Hmm, might rename offset_{x,y}
to {row,col}_offset
to make that a bit clearer actually.
I've refactored the floating post window configuration. It's now possible to set width
and height
in the "top level" of the config as well as row
and col
, see an example here.