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

Integrating devicons #33

Open
asilvadesigns opened this issue Jul 11, 2017 · 3 comments
Open

Integrating devicons #33

asilvadesigns opened this issue Jul 11, 2017 · 3 comments

Comments

@asilvadesigns
Copy link

Hello, would like some help integrating devicons, assuming it is possible.

Using the WebDevIconsGetFileTypeSumbol(), from https://github.com/ryanoasis/vim-devicons#developer, I can replace line 110, within buftablime.vim from this:
let tab.label = lpad . get(tab, 'pre', '') . tab.label . ' '
to this:
let tab.label = lpad . get(tab, 'pre', '') . tab.label . ' %{WebDevIconsGetFileTypeSymbol()} '.

It mostly works, except that all buffers get the same icon as the current. *sigh. I'm not sure how to address this, and would greatly appreciate your help, assuming it's possible.

Thank you.

@asilvadesigns
Copy link
Author

Got it!

replaced line 75 within buftabline.vim from this:

let tab.label = tab.path[tab.sep + 1:]
to this:
let tab.label = tab.path[tab.sep + 1:] . ' ' . WebDevIconsGetFileTypeSymbol(tab.path)

@ap ap added the enhancement label Jul 28, 2017
@pirey
Copy link

pirey commented Feb 15, 2020

thanks @asilvadesigns it worked and looked nice!

@pinpox
Copy link

pinpox commented Aug 25, 2020

Any possibility of getting this merged, possibly as an option? I'd rather not be modifying the plugin it self since it will break on updates

GopherJ added a commit to GopherJ/vim-buftabline that referenced this issue Dec 31, 2020
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

4 participants