fix: ensure nvim-web-devicoins exists

This commit is contained in:
Barrett Ruth 2026-03-02 19:25:08 -05:00
parent e90508c459
commit 262bf8710e
Signed by: barrett
GPG key ID: A6C96C9349D2FC81

View file

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