diff --git a/doc/webdevicons.txt b/doc/webdevicons.txt index c1f5db1..44b76a8 100644 --- a/doc/webdevicons.txt +++ b/doc/webdevicons.txt @@ -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) diff --git a/plugin/webdevicons.vim b/plugin/webdevicons.vim index 596ec68..c24969c 100644 --- a/plugin/webdevicons.vim +++ b/plugin/webdevicons.vim @@ -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 = '' @@ -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