Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: allow wrapping for the lazy window #422

Closed
1 task done
chrisgrieser opened this issue Jan 18, 2023 · 3 comments · Fixed by #417
Closed
1 task done

feature: allow wrapping for the lazy window #422

chrisgrieser opened this issue Jan 18, 2023 · 3 comments · Fixed by #417
Labels
enhancement New feature or request

Comments

@chrisgrieser
Copy link

Did you check the docs?

  • I have read all the lazy.nvim docs

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

with smaller screens / higher font size the lazy window often looks like this, making the hard to read due to the formatting
Pasted image 2023-01-18 12 26 43

Describe the solution you'd like

being able to set nowrap for the lazy window. Scrolling a bit to the side to read the commits you are interested in really would not be a big deal.

This could potentially also make sense as a configuration option for lazy, or even as a default, but also does not need to be. Being able to set nowrap at all would already make this far more readable

Describe alternatives you've considered

  • I set set nowrap in the lazy window, but it barely changed anything, potentially cause lazy already does add some line breaks?
  • I already increased the width of the lazy window to the 100%
  • well, decreasing font size, which does not really work well (bad eyes etc.)

Additional context

No response

@chrisgrieser chrisgrieser added the enhancement New feature or request label Jan 18, 2023
@seblj
Copy link
Contributor

seblj commented Jan 18, 2023

It's not possible as of now since the text actually contains whitespace... However I would also really like to be able to set nowrap even though I know @folke has said that he does not plan to change this behaviour... so consider this a +1

@folke
Copy link
Owner

folke commented Jan 19, 2023

related:

I'll make it configurable

@folke folke closed this as completed in d6fc848 Jan 19, 2023
@folke
Copy link
Owner

folke commented Jan 19, 2023

I made some impeovements to the default wrapping behavior and made it configurable with config.ui.wrap.

When wrap=true, the buttons will break correctly and the other lines will wrap with indent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants