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

Allow custom distro icon #446

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions doc/webdevicons.txt
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,11 @@ Character Mappings ~
let g:DevIconsEnableDistro = 0
<

>
" configure the icon to be used for your OS/Linux distribution
let g:WebDevIconsDistro = ''
<

>
" enable custom folder/directory glyph exact matching
" (enabled by default when g:WebDevIconsUnicodeDecorateFolderNodes is set to 1)
Expand Down
7 changes: 7 additions & 0 deletions plugin/webdevicons.vim
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@ function s:getDistro()
if exists('s:distro')
return s:distro
endif

if exists('g:WebDevIconsDistro') && g:WebDevIconsDistro != ''
let s:distro = g:WebDevIconsDistro
return s:distro
endif

if has('bsd')
let s:distro = ''
Expand All @@ -117,6 +122,8 @@ function s:getDistro()
let s:distro = ''
elseif s:lsb =~# 'Dock'
let s:distro = ''
elseif s:lsb =~# 'Manjaro'
let s:distro = ''
else
let s:distro = ''
endif
Expand Down