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

@@ -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