properly check web dev icons

This commit is contained in:
kyazdani42 2020-02-20 20:06:04 +01:00
parent 5eaeac123b
commit 1d61d6b123
2 changed files with 2 additions and 1 deletions

View File

@ -18,6 +18,7 @@
## TODO
- add docs
- fix coloring when no dev icons
- add options for users (tree side, tree size)
- cd command to move faster accross the fs if needed
- quickly find file in the directory structure

View File

@ -57,7 +57,7 @@ local function dev_icons(pathname, isdir, open)
end
local function get_icon_func_gen()
if api.nvim_call_function('exists', { "WebDevIconsGetFileTypeSymbol" }) == 0 then
if api.nvim_call_function('exists', { "*WebDevIconsGetFileTypeSymbol" }) == 1 then
return dev_icons
else
return default_icons