mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-03 18:28:38 +00:00
fix(util): better default icons when no icon plugin is installed
This commit is contained in:
parent
4db1fc6da6
commit
0e4ddfd3ee
1 changed files with 2 additions and 2 deletions
|
@ -73,7 +73,7 @@ function M.icon(name, cat)
|
|||
end,
|
||||
function()
|
||||
if cat == "directory" then
|
||||
return " ", "Directory"
|
||||
return " ", "Directory"
|
||||
end
|
||||
local Icons = require("nvim-web-devicons")
|
||||
if cat == "filetype" then
|
||||
|
@ -92,7 +92,7 @@ function M.icon(name, cat)
|
|||
return ret[2], ret[3]
|
||||
end
|
||||
end
|
||||
return " "
|
||||
return " "
|
||||
end
|
||||
|
||||
-- Encodes a string to be used as a file name.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue