akinsho / toggleterm.nvim

A neovim lua plugin to help easily manage multiple terminal windows
GNU General Public License v3.0
4.06k stars 170 forks source link

User configuration for winfixwidth and winfixheight #545

Closed raffaem closed 5 months ago

akinsho commented 5 months ago

Hi @raffaem, so these aren't actually intended to be user configurable since the plugin controls the width and height itself so allowing users to override this would be a can of worms I'd rather not have. Thanks anyway for the contribution 🙏🏾

raffaem commented 5 months ago

Thanks for looking at this.

Sorry @akinsho , but I need <CTRL-w>= to work.

Do you know how can I make it work without this PR?

How can I have all the windows with equal width and height using toggleterm?

On a side note, how toggleterm manages the shell size? How can I change the size using toggleterm?

akinsho commented 5 months ago

You can use a function to set the size and width of the windows. That isn't maybe as seamless as the mapping but I'd rather not go down that rabbit hole as it's can of worms and this is frankly the first time someone has requested this use case (I'm not much for it personally).

raffaem commented 5 months ago

You can use a function to set the size and width of the windows. That isn't maybe as seamless as the mapping but I'd rather not go down that rabbit hole as it's can of worms and this is frankly the first time someone has requested this use case (I'm not much for it personally).

But a function within the config?

That doesn't allow you to change the size after the terminal has been initialized, right?