ghillb / cybu.nvim

Neovim plugin that offers context when cycling buffers in the form of a customizable notification window.
MIT License
305 stars 5 forks source link

Feature request: option to control icon size #9

Closed aMOPel closed 2 years ago

aMOPel commented 2 years ago

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 commented 2 years ago

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.

aMOPel commented 2 years ago

Perfect! Thank you :)