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: option to control icon size #9

Closed
aMOPel opened this issue Jul 29, 2022 · 2 comments
Closed

Feature request: option to control icon size #9

aMOPel opened this issue Jul 29, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@aMOPel
Copy link

aMOPel commented Jul 29, 2022

It would be great if you could add an option in the setup() to control the allowed maxsize of icons and shift the file_name to the right accordingly. Currently with the plenary truncate, 2col wide icons can get truncated to nothingness.

Great plugin, thanks a lot :)

@ghillb
Copy link
Owner

ghillb commented Jul 30, 2022

Glad you like the plugin!

I pushed something to the main branch, which is slightly different. An option to enable icon trimming to 1 char wideness. If it is turned off, icons of any size are displayed and the file names are shifted to the right accordingly.

I could make the truncation size configurable also, but I'm not sure if many people would need this.

You can enable wider icons by setting the truncate config key to false:

config = {
  style = {
    devicons = {
      truncate = false,
    },
  }

I hope it works out for you, and if not we'll find another solution.

@ghillb ghillb added the enhancement New feature or request label Jul 30, 2022
@aMOPel
Copy link
Author

aMOPel commented Jul 30, 2022

Perfect! Thank you :)

@aMOPel aMOPel closed this as completed Jul 30, 2022
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

No branches or pull requests

2 participants