diff --git a/lua/oil/columns.lua b/lua/oil/columns.lua index 4225edf..03c4620 100644 --- a/lua/oil/columns.lua +++ b/lua/oil/columns.lua @@ -205,12 +205,13 @@ if has_devicons then end end if type == "directory" then - return { conf.directory or " ", "OilDir" } + local icon = conf and conf.directory or " " + return { icon, "OilDir" } else local icon local hl icon, hl = devicons.get_icon(name) - icon = icon or conf.default_file or "" + icon = icon or (conf and conf.default_file or "") return { icon .. " ", hl } end end,