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 request] Add configurable devicon padding #3174

Closed
0x0003 opened this issue Jun 17, 2024 · 1 comment
Closed

[feature request] Add configurable devicon padding #3174

0x0003 opened this issue Jun 17, 2024 · 1 comment
Labels
enhancement Enhancement to performance, inner workings or existent features

Comments

@0x0003
Copy link

0x0003 commented Jun 17, 2024

Is your feature request related to a problem? Please describe.
With narrow fonts (e.g. Iosevka), devicons are located too close to the text, in some cases so close they blend with the letters.

Describe the solution you'd like
A configurable padding/separator option would be nice, either an integer to set the number of spaces, or just a straight up string of characters.

Describe alternatives you've considered
I did find a function that pads icons with one space in utils.lua, but while altering it to print 2+ spaces does provide the desired effect in some pickers (e.g. builtin.find_files), others (e.g. builtin.buffers) are not affected for whatever reason, and I couldn't figure out why.

Additional context
iosevka_example

@0x0003 0x0003 added the enhancement Enhancement to performance, inner workings or existent features label Jun 17, 2024
@jamestrew
Copy link
Contributor

This would be such a tedious option to implement for such a niche font preference issue. I can't see us implementing this, at least in the near future.
It'd probably be easier to set up override icons for nvim-web-devicons with extra whitespace appended. Might be possible to do this programmatically.

@jamestrew jamestrew closed this as not planned Won't fix, can't repro, duplicate, stale Jun 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement to performance, inner workings or existent features
Projects
None yet
Development

No branches or pull requests

2 participants