@@ -293,7 +293,7 @@ Subsequent calls to setup will replace the previous configuration.
293
293
debounce_delay = 50,
294
294
severity = {
295
295
min = vim.diagnostic.severity.HINT,
296
- max = vim.diagnostic.severity.ERROR
296
+ max = vim.diagnostic.severity.ERROR,
297
297
},
298
298
icons = {
299
299
hint = "",
@@ -306,6 +306,7 @@ Subsequent calls to setup will replace the previous configuration.
306
306
dotfiles = false,
307
307
custom = {},
308
308
exclude = {},
309
+ git_clean = false,
309
310
},
310
311
filesystem_watchers = {
311
312
enable = true,
@@ -889,6 +890,11 @@ Filtering options.
889
890
Toggle via the `toggle_dotfiles` action, default mapping `H` .
890
891
Type: `boolean ` , Default: `false`
891
892
893
+ *nvim-tree.filters.git_clean*
894
+ Do not show files with no git status. This will show ignored files when
895
+ | nvim-tree.git.ignore | is set, as they are effectively dirty.
896
+ Type: `boolean ` , Default: `false`
897
+
892
898
*nvim-tree.filters.custom*
893
899
Custom list of vim regex for file/directory names that will not be shown.
894
900
Backslashes must be escaped e.g. "^\\.git". See | string-match | .
@@ -1305,6 +1311,7 @@ DEFAULT MAPPINGS *nvim-tree-default-mappings
1305
1311
`<Tab> ` preview open the file as a preview (keeps the cursor in the tree)
1306
1312
`K` first_sibling navigate to the first sibling of current file/directory
1307
1313
`J` last_sibling navigate to the last sibling of current file/directory
1314
+ `C` toggle_git_clean toggle visibility of git clean via | filters.git_clean | option
1308
1315
`I` toggle_git_ignored toggle visibility of files/folders hidden via | git.ignore | option
1309
1316
`H` toggle_dotfiles toggle visibility of dotfiles via | filters.dotfiles | option
1310
1317
`U` toggle_custom toggle visibility of files/folders hidden via | filters.custom | option
@@ -1354,6 +1361,7 @@ DEFAULT MAPPINGS *nvim-tree-default-mappings
1354
1361
{ key = "<Tab>", action = "preview" },
1355
1362
{ key = "K", action = "first_sibling" },
1356
1363
{ key = "J", action = "last_sibling" },
1364
+ { key = "C", action = "toggle_git_clean" },
1357
1365
{ key = "I", action = "toggle_git_ignored" },
1358
1366
{ key = "H", action = "toggle_dotfiles" },
1359
1367
{ key = "U", action = "toggle_custom" },
0 commit comments