Skip to content

Commit cac2e1b

Browse files
authored
feat(filesystem): improve default empty folder icons (#1101)
1 parent 76c43f4 commit cac2e1b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lua/neo-tree/defaults.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,8 @@ local config = {
198198
icon = {
199199
folder_closed = "",
200200
folder_open = "",
201-
folder_empty = "󰜌",
202-
folder_empty_open = "󰜌",
201+
folder_empty = "󰉖",
202+
folder_empty_open = "󰷏",
203203
-- The next two settings are only a fallback, if you use nvim-web-devicons and configure default icons there
204204
-- then these will never be used.
205205
default = "*",

tests/neo-tree/ui/icons_spec.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,15 @@ describe("ui/icons", function()
7171

7272
u.assert_buf_lines(bufnr, {
7373
string.format("  %s", fs_tree.abspath):sub(1, 42),
74-
" 󰜌 baz",
74+
" 󰉖 baz",
7575
"  foo",
7676
" │  bar",
7777
" └ * foo1.lua",
7878
" * 1.md",
7979
})
8080

8181
u.assert_highlight(bufnr, ns_id, 1, "", "NeoTreeDirectoryIcon")
82-
u.assert_highlight(bufnr, ns_id, 2, "󰜌 ", "NeoTreeDirectoryIcon")
82+
u.assert_highlight(bufnr, ns_id, 2, "󰉖 ", "NeoTreeDirectoryIcon")
8383
u.assert_highlight(bufnr, ns_id, 4, "", "NeoTreeDirectoryIcon")
8484
u.assert_highlight(bufnr, ns_id, 5, "* ", "NeoTreeFileIcon")
8585
end)
@@ -108,15 +108,15 @@ describe("ui/icons", function()
108108

109109
u.assert_buf_lines(bufnr, {
110110
vim.fn.strcharpart(string.format("  %s", fs_tree.abspath), 0, 40),
111-
" 󰜌 baz",
111+
" 󰉖 baz",
112112
"  foo",
113113
" │  bar",
114114
" └  foo1.lua",
115115
"  1.md",
116116
})
117117

118118
u.assert_highlight(bufnr, ns_id, 1, "", "NeoTreeDirectoryIcon")
119-
u.assert_highlight(bufnr, ns_id, 2, "󰜌 ", "NeoTreeDirectoryIcon")
119+
u.assert_highlight(bufnr, ns_id, 2, "󰉖 ", "NeoTreeDirectoryIcon")
120120
u.assert_highlight(bufnr, ns_id, 4, "", "NeoTreeDirectoryIcon")
121121

122122
local extmarks = u.get_text_extmarks(bufnr, ns_id, 5, "")

0 commit comments

Comments
 (0)