SuperBo / fugit2.nvim

Neovim git GUI powered by libgit2
MIT License
352 stars 7 forks source link

feature: adjust patch view layout for smaller screens #9

Open ceuk opened 4 months ago

ceuk commented 4 months ago

Did you check the docs?

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

image

Patch view is basically unreadable on smaller screens (the neovim window in the above was 80% of my laptop screen width)

Describe the solution you'd like

Would be good if when under a certain width, the staged/unstaged panes were arranged vertically instead of horizontally

Describe alternatives you've considered

Using a bigger screen :)

Additional context

No response

SuperBo commented 4 months ago

I agree to your solution (vertically showing patch), it is quite oppose to the original aesthetic design. However, the fix may take a while, I need to take a look at nui document.

Thank you!

m1guer commented 4 months ago

i think the better way to do this is let the user set their own window resolution.

m1guer commented 4 months ago

i think the better way to do this is let the user set their own window resolution.

@ceuk you can do something like this in the plugin folder. i don't know how to set this in the opt on plugin install but works. -- git_status.lua image

before: image

after: image

SuperBo commented 4 months ago

@Miguerfi, I'm working on your suggestion, allow setting window size via opts.

Can I ask what colorscheme are you using, the git graph should have better colors lol.

m1guer commented 4 months ago

i'm currently using nvchad for my base cfg. the theme is "onedark"

edit: i'm using neovide.

m1guer commented 4 months ago

and how i can contribue for this project? how i can enter in contact with you?

SuperBo commented 4 months ago

@Miguerfi, @ceuk , you now can configure layout size, enabled via https://github.com/SuperBo/fugit2.nvim/pull/41.

@Miguerfi: you can drop an email to supernbo@gmail.com :D, raise an issue or you can contact via Reddit.

m1guer commented 4 months ago

wow this come fast.

SuperBo commented 4 months ago

wow this come fast.

because it's already in the roadmap 🤘