fix: ensure nvim-web-devicoins exists
This commit is contained in:
parent
e90508c459
commit
262bf8710e
1 changed files with 4 additions and 1 deletions
|
|
@ -947,7 +947,10 @@ M.get_icon_provider = function()
|
|||
|
||||
local has_nonicons, nonicons = pcall(require, 'nonicons')
|
||||
if has_nonicons and nonicons.get_icon then
|
||||
local _, devicons = pcall(require, 'nvim-web-devicons')
|
||||
local has_devicons, devicons = pcall(require, 'nvim-web-devicons')
|
||||
if not has_devicons then
|
||||
devicons = nil
|
||||
end
|
||||
return function(type, name, conf, ft)
|
||||
if type == 'directory' then
|
||||
local icon = nonicons.get('file-directory-fill')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue