From 8825d7692f04b0ea6be629ad578817874596706d Mon Sep 17 00:00:00 2001 From: "Craig E. Shea" Date: Mon, 13 Feb 2023 00:48:49 -0500 Subject: [PATCH 1/3] feat: Allow custom distro icon to be specified Create a new configuration option to allow one to specify they own distro icon. --- plugin/webdevicons.vim | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugin/webdevicons.vim b/plugin/webdevicons.vim index 596ec68..8d32bb3 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 = '' From d2c74279f3a47703697eb5ee35cb64f8c6aecece Mon Sep 17 00:00:00 2001 From: "Craig E. Shea" Date: Mon, 13 Feb 2023 00:51:32 -0500 Subject: [PATCH 2/3] feat: Add Manjaro as a "supported" distro --- plugin/webdevicons.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugin/webdevicons.vim b/plugin/webdevicons.vim index 8d32bb3..c24969c 100644 --- a/plugin/webdevicons.vim +++ b/plugin/webdevicons.vim @@ -122,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 From 6ff2e5a8e378b8e7b43ddd1b854318e4fca3565c Mon Sep 17 00:00:00 2001 From: "Craig E. Shea" Date: Mon, 13 Feb 2023 01:05:47 -0500 Subject: [PATCH 3/3] doc: Add example for setting custom distro icon --- doc/webdevicons.txt | 5 +++++ 1 file changed, 5 insertions(+) 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)