sodapopcan / vim-twiggy

Git branch management for Vim
280 stars 15 forks source link

Twiggy always opens on the right no matter value of twiggy_split_method #37

Closed dbatten5 closed 3 years ago

dbatten5 commented 3 years ago

I've tried all four possible values for twiggy_split_method and the window always opens on the right. I've been able to control other aspects of the twiggy window fine, eg. the number of columns with let g:twiggy_num_columns = 50.

image

I've echoed out the value of g:twiggy_split_method which is topleft and as you can see the window is on the right. Is there something else I'm missing? Or perhaps a conflicting configuration variable? A bit stuck on where to start debugging this.

If I open a new split with eg :topleft vnew it works as expected.

Thanks!

sodapopcan commented 3 years ago

Do you have splitright set? (:echo &splitright => 1). That's how I'm able to reproduce this.

sodapopcan commented 3 years ago

Ok, upon further inspection, twiggy_split_method is documented but never used 😬😬😬 Clearly a bug.

sodapopcan commented 3 years ago

Sooooo, it turns out that the documentation was just wrong. The setting is actually g:twiggy_split_position 🤦 I've fixed the docs.

dbatten5 commented 3 years ago

Ah great, probably should have checked that myself! Thanks for updating though