itmecho / neoterm.nvim

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

Fix terminal going offscreen in neovide in top/bottom/fullscreen #17

Closed dpi0 closed 1 month ago

dpi0 commented 1 month ago

When using neovide and using the top/bottom/fullscreen options, by default the terminal window goes offscreen. When a width of 1 or 100% is used with right/center it also goes offscreen.

A simple solution was to subtract width_padding from each position's width.

Fixes #3