diff --git a/lua/lualine/components/branch.lua b/lua/lualine/components/branch.lua index 05a3cad..bb0ee9a 100644 --- a/lua/lualine/components/branch.lua +++ b/lua/lualine/components/branch.lua @@ -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 diff --git a/lua/lualine/components/filetype.lua b/lua/lualine/components/filetype.lua index 4994c3c..e28b7d6 100644 --- a/lua/lualine/components/filetype.lua +++ b/lua/lualine/components/filetype.lua @@ -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