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

more than one character as an icon #145

Open
GabeDuarteM opened this issue Aug 23, 2019 · 1 comment
Open

more than one character as an icon #145

GabeDuarteM opened this issue Aug 23, 2019 · 1 comment

Comments

@GabeDuarteM
Copy link

I'm trying to add ryanoasis/vim-devicons to the dirvish buffer, calling dirvish#add_icon_fn({p -> WebDevIconsGetFileTypeSymbol(p)})

This does add the correct icons, but unfortunately theres not enought spacing between them and the text, as you can see by the image below.

image
I'd like to add more spacing between the icon and the text, so I tried appending it to the icon, like dirvish#add_icon_fn({p -> WebDevIconsGetFileTypeSymbol(p) . ' '}), but this does nothing (I guess this is being trimmed somewhere), and if I try to do it like dirvish#add_icon_fn({p -> WebDevIconsGetFileTypeSymbol(p).'x'}), I get the following error while trying to run :Dirvish

image

Is there any way of adding more spacing to either the icon or the filepath?

@justinmk justinmk changed the title Allow adding more than one character as an icon more than one character as an icon Aug 23, 2019
@justinmk
Copy link
Owner

Not yet, because Vim's "conceal" feature only supports 1 char.

Should work if vim/vim#4687 is ever resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants