itmecho / neoterm.nvim

Neovim lua plugin for managing a floating terminal window
GNU General Public License v3.0
36 stars 4 forks source link

Added width option #6

Closed dpi0 closed 4 months ago

dpi0 commented 4 months ago

The width option allows users to set the size of the terminal window to their preferences instead of the hardcoded 1/2 width of the window size.

I've tested this option locally and have respected the default width setting of 1/2.

Also I've updated the README.md to showcase this option.

itmecho commented 4 months ago

That's a good idea, thanks for the PR!

Do you think it would be a good idea to also support the number being more than 1 and just setting the width to that number? i.e. width = 0.4 results in 40% of the screen but width = 40 results in a fixed width of 40 columns?

We probably also want handling for if someone passes in a negative number to just use the default value.