fixed the check if function 'WebDevIcons' exists

This commit is contained in:
jarviliam 2020-12-31 12:12:40 +09:00
parent 9424757111
commit cde411d1b8
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ local function Branch()
return branch
end
ok = (vim.fn.exists('*WebDevIconsGetFileTypeSymbol'))
if ok then
if ok ~= 0 then
local icon = ''
return icon .. ' ' .. branch
end

View File

@ -11,7 +11,7 @@ local function Filetype()
return filetype
end
ok = (vim.fn.exists('*WebDevIconsGetFileTypeSymbol'))
if ok then
if ok ~= 0 then
local icon = vim.call('WebDevIconsGetFileTypeSymbol')
return icon .. ' ' .. filetype
end