add akin909 screenshot, fix user icon config load

This commit is contained in:
kiyan42 2020-06-19 13:31:42 +02:00
parent d4e5b1bb51
commit fbe5d6d1f7
3 changed files with 5 additions and 4 deletions

BIN
.github/screenshot2.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 744 KiB

View File

@ -110,6 +110,7 @@ This plugin is very fast because it uses the `libuv` `scandir` and `scandir_next
- Mouse support - Mouse support
- It's fast - It's fast
## Screenshot ## Screenshots
![alt text](.github/screenshot.png?raw=true "file explorer") ![alt text](.github/screenshot.png?raw=true "kyazdani42 tree")
![alt text](.github/screenshot2.png?raw=true "akin909 tree")

View File

@ -22,12 +22,12 @@ function M.get_icon_state()
if user_icons.default then if user_icons.default then
icons.default = user_icons.default icons.default = user_icons.default
end end
for key, val in pairs(user_icons.git) do for key, val in pairs(user_icons.git or {}) do
if icons.git_icons[key] then if icons.git_icons[key] then
icons.git_icons[key] = val icons.git_icons[key] = val
end end
end end
for key, val in pairs(user_icons.folder) do for key, val in pairs(user_icons.folder or {}) do
if icons.folder_icons[key] then if icons.folder_icons[key] then
icons.folder_icons[key] = val icons.folder_icons[key] = val
end end