feat(#2369): add full renderer.icons.web_devicons options for file and folder (#2375)

* Add `webdev_colors_folder` option

* Check if `M.devicons` exists

* Refactor `get_folder_icon`

* Add configuration options for both files and folders

* web_devicons.*.enabled -> enable

* silent migration: renderer.icons.webdev_colors -> renderer.icons.web_devicons.file.color

* silent migration: renderer.icons.webdev_colors -> renderer.icons.web_devicons.file.color

---------

Co-authored-by: Alexander Courtis <alex@courtis.org>
This commit is contained in:
Antonio Sarosi
2023-08-26 06:42:44 +02:00
committed by GitHub
parent d11d701857
commit b144b33390
5 changed files with 87 additions and 17 deletions

View File

@@ -426,7 +426,16 @@ local DEFAULT_OPTS = { -- BEGIN_DEFAULT_OPTS
},
},
icons = {
webdev_colors = true,
web_devicons = {
file = {
enable = true,
color = true,
},
folder = {
enable = false,
color = true,
},
},
git_placement = "before",
modified_placement = "after",
padding = " ",