Skip to content

more than one character as an icon #145

Closed
brianhuster/vim-dirvish
#1
@GabeDuarteM

Description

@GabeDuarteM

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?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions