grapp-dev / nui-components.nvim

A feature-rich and highly customizable library for creating user interfaces in Neovim.
https://nui-components.grapp.dev
MIT License
330 stars 7 forks source link

fix: remove right padding from paragraph and descendants #11

Closed willothy closed 7 months ago

willothy commented 7 months ago

Makes components where truncate = true not add right padding. This stops the cursor from scrolling horizontally outside of the button text.

Before:

https://github.com/grapp-dev/nui-components.nvim/assets/38540736/4b00f69c-bd8e-42ee-998e-95322c02665a

After:

https://github.com/grapp-dev/nui-components.nvim/assets/38540736/f83abce9-ebeb-4ebc-89dd-b6ec456abafd

willothy commented 7 months ago

Yessir, glad to help! I've been wanting something like this for sooo long and just never got around to building it myself lol