@@ -304,9 +304,10 @@ Subsequent calls to setup will replace the previous configuration.
304
304
},
305
305
filters = {
306
306
dotfiles = false,
307
+ git_clean = false,
308
+ no_buffer = false,
307
309
custom = {},
308
310
exclude = {},
309
- git_clean = false,
310
311
},
311
312
filesystem_watchers = {
312
313
enable = true,
@@ -893,6 +894,12 @@ Filtering options.
893
894
*nvim-tree.filters.git_clean*
894
895
Do not show files with no git status. This will show ignored files when
895
896
| nvim-tree.git.ignore | is set, as they are effectively dirty.
897
+ Toggle via the `toggle_git_clean` action, default mapping `C` .
898
+ Type: `boolean ` , Default: `false`
899
+
900
+ *nvim-tree.filters.no_buffer*
901
+ Do not show files that have no open buffer.
902
+ Toggle via the `toggle_no_buffer` action, default mapping `B` .
896
903
Type: `boolean ` , Default: `false`
897
904
898
905
*nvim-tree.filters.custom*
@@ -1181,6 +1188,7 @@ exists.
1181
1188
- expand_all
1182
1189
- toggle_gitignore_filter
1183
1190
- toggle_git_clean_filter
1191
+ - toggle_no_buffer_filter
1184
1192
- toggle_custom_filter
1185
1193
- toggle_hidden_filter
1186
1194
- toggle_help
@@ -1315,6 +1323,7 @@ DEFAULT MAPPINGS *nvim-tree-default-mappings
1315
1323
`C` toggle_git_clean toggle visibility of git clean via | filters.git_clean | option
1316
1324
`I` toggle_git_ignored toggle visibility of files/folders hidden via | git.ignore | option
1317
1325
`H` toggle_dotfiles toggle visibility of dotfiles via | filters.dotfiles | option
1326
+ `B` toggle_no_buffer toggle visibility of files/folders hidden via | filters.no_buffer | option
1318
1327
`U` toggle_custom toggle visibility of files/folders hidden via | filters.custom | option
1319
1328
`R` refresh refresh the tree
1320
1329
`a ` create add a file; leaving a trailing `/` will add a directory
@@ -1365,6 +1374,7 @@ DEFAULT MAPPINGS *nvim-tree-default-mappings
1365
1374
{ key = "C", action = "toggle_git_clean" },
1366
1375
{ key = "I", action = "toggle_git_ignored" },
1367
1376
{ key = "H", action = "toggle_dotfiles" },
1377
+ { key = "B", action = "toggle_no_buffer" },
1368
1378
{ key = "U", action = "toggle_custom" },
1369
1379
{ key = "R", action = "refresh" },
1370
1380
{ key = "a", action = "create" },
0 commit comments