Merge pull request #2 from jarviliam/fix_webdevicon_check
Quick fix for checking if the function 'WebDevIconsGetFileTypeSymbol' exists
This commit is contained in:
commit
6ae335748d
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue