From b0f44d3af6ba2435df320dfbbb8e22f01e472e64 Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Sun, 22 Feb 2026 21:03:54 -0500 Subject: [PATCH] fix: remove nonicons custom impl --- lua/oil/util.lua | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/lua/oil/util.lua b/lua/oil/util.lua index cd94729..5fbb3aa 100644 --- a/lua/oil/util.lua +++ b/lua/oil/util.lua @@ -945,32 +945,6 @@ M.get_icon_provider = function() end end - local has_nonicons, nonicons = pcall(require, 'nonicons') - if has_nonicons and type(nonicons.get) == 'function' then - return function(type, name, conf, ft) - if type == 'directory' then - local icon = nonicons.get('file-directory') - return icon or (conf and conf.directory or ''), 'OilDirIcon' - else - if ft then - local ft_icon = nonicons.get(ft) - if ft_icon then - return ft_icon, 'OilFileIcon' - end - end - local ext = name:match('%.([^%.]+)$') - if ext then - local ext_icon = nonicons.get(ext) - if ext_icon then - return ext_icon, 'OilFileIcon' - end - end - local icon = nonicons.get('file') - return icon or (conf and conf.default_file or ''), 'OilFileIcon' - end - end - end - local has_devicons, devicons = pcall(require, 'nvim-web-devicons') if has_devicons then return function(type, name, conf, ft)