michaelb / sniprun

A neovim plugin to run lines/blocs of code (independently of the rest of the file), supporting multiples languages
MIT License
1.43k stars 46 forks source link

Option to open Terminal in horizontal split #258

Closed cptchuckles closed 10 months ago

cptchuckles commented 10 months ago

Is your feature request related to a problem? Please describe. I want to be able to configure SnipRun to open a horizontal split for Terminal instead of a vertical split

Describe the solution you'd like a config option to make the terminal split horizontally

Describe alternatives you've considered I usually have to move the terminal window down with <ctrl>wJ and then navigate back up to my text buffer but that's getting old

Additional context pls

michaelb commented 10 months ago

Last commit on dev branch should contain a fix with the following additional options

display_options = {
    terminal_position = "vertical", --# or "horizontal", to open as horizontal split instead of vertical split
    terminal_width = 45,          --# change the terminal display option width (if vertical)
    terminal_height = 20,         --# change the terminal display option height (if horizontal)
    }

You're welcome to try it out, or wait for the next sniprun release (probably a reasonable amount of time)

michaelb commented 10 months ago

merged and released in v1.3.8