Skip to content

Commit 7a1edd7

Browse files
committed
docs: update README with corrected component configs for icon and name
1 parent 52a6c8c commit 7a1edd7

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,12 @@ use {
6969
icon = {
7070
folder_closed = "",
7171
folder_open = "",
72-
trailing_slash = false,
7372
default_icon = "*",
7473
},
74+
name = {
75+
trailing_slash = false,
76+
use_git_status_colors = true,
77+
},
7578
git_status = {
7679
highlight = "NeoTreeDimText", -- if you remove this the status will be colorful
7780
},
@@ -273,9 +276,11 @@ This source can be used to:
273276

274277
Another available source is `buffers`, which displays your open buffers. This is
275278
the same list you would see from `:ls`. To show with the `buffers` list, use:
279+
276280
```
277281
:NeoTreeShow buffers
278282
```
283+
279284
or `:NeoTreeFocus buffers` or `:NeoTreeShow buffers` or `:NeoTreeFloat buffers`
280285

281286
### git_status

lua/neo-tree/defaults.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,12 @@ local config = {
5959
icon = {
6060
folder_closed = "",
6161
folder_open = "",
62-
trailing_slash = false,
6362
default_icon = "*",
6463
},
64+
name = {
65+
trailing_slash = false,
66+
use_git_status_colors = true,
67+
},
6568
git_status = {
6669
highlight = "NeoTreeDimText",
6770
},

0 commit comments

Comments
 (0)