NeogitOrg / neogit

An interactive and powerful Git interface for Neovim, inspired by Magit
MIT License
3.71k stars 221 forks source link

Allow `show_staged_diff` to open in a vertical split #1293

Closed ptn closed 2 months ago

ptn commented 2 months ago

Is your feature request related to a problem? Please describe. No.

Describe the solution you'd like I'd like to be able to configure show_staged_diff to open in a vertical split. At the moment it always opens the diff buffer at the bottom, but I'd love to see it to the right.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context I'd love to send you a PR if you help me by pointing out where the code should go.

CKolkey commented 2 months ago

Sounds good - its defined on line 57 here: lua/neogit/buffers/diff/init.lua

Check out some other buffers where a config value is passed there instead :)