neo-tree.nvim icon indicating copy to clipboard operation
neo-tree.nvim copied to clipboard

FEATURE: remove spacing if not using icon

Open yofriadi opened this issue 1 year ago • 3 comments
trafficstars

Did you check the docs?

  • [X] I have read all the docs.

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

there is no problem, it is just for aesthetic.

Describe the solution you'd like.

I would like not to using icon and remove 1 space for that character. Screenshot 2023-12-24 at 18 34 58

see that '>' icon, there is 2 space after that, I have set the config to empty string but there still space occupying that icon place

-- my config
default_component_configs = {
  icon = {
    folder_closed = "",
    folder_open = "",
    folder_empty = "",
    default = "",
  },
}

Describe alternatives you've considered.

No response

Additional Context

No response

yofriadi avatar Dec 24 '23 11:12 yofriadi

Please add it as an option that you can toggle because if you have files with and without icons mixed, it wouldn’t look that good without the spacing

TheBlckbird avatar Dec 28 '23 11:12 TheBlckbird

Please add it as an option that you can toggle because if you have files with and without icons mixed, it wouldn’t look that good without the spacing

Feel free to contribute this if you want it. It's not high priority currently, so unless someone else hops on this, it'll wait until/if one of the contributors/maintainers gets around to it

miversen33 avatar Dec 30 '23 00:12 miversen33

If you don't want to use icons at all, you can just disable the component and then you won't have any extra spaces to worry about:

    require 'neo-tree'.setup({
      default_component_configs = {
        icon = {
          enabled = false
        }
      }
    })

cseickel avatar Dec 30 '23 00:12 cseickel