You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lua/nvim-tree/_meta/config.lua
+62-16Lines changed: 62 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -26,19 +26,19 @@ error("Cannot require a meta file")
26
26
---
27
27
---Keeps the cursor on the first letter of the filename when moving in the tree.
28
28
---(default: `false`)
29
-
---@fieldhijack_cursor? boolean
29
+
---@fieldhijack_cursor? boolean
30
30
---
31
31
---Reloads the explorer every time a buffer is written to.
32
32
---(default: `true`)
33
33
---@fieldauto_reload_on_write? boolean
34
34
---
35
35
---Completely disable |netrw|, see |nvim-tree-netrw| for details. It is strongly advised to eagerly disable netrw, due to race conditions at vim startup.
36
36
---(default: `false`)
37
-
---@fielddisable_netrw? boolean
37
+
---@fielddisable_netrw? boolean
38
38
---
39
39
---Hijack netrw windows, ignored when `disable_netrw` is `true`
40
40
---(default: `true`)
41
-
---@fieldhijack_netrw? boolean
41
+
---@fieldhijack_netrw? boolean
42
42
---
43
43
---Opens in place of the unnamed buffer if it's empty.
44
44
---(default: `false`)
@@ -51,7 +51,7 @@ error("Cannot require a meta file")
51
51
---
52
52
---Prefer startup root directory when updating root directory of the tree. Only relevant when |nvim_tree.Config.UpdateFocusedFile| `update_root` is `true`
53
53
---(default: `false`)
54
-
---@fieldprefer_startup_root? boolean
54
+
---@fieldprefer_startup_root? boolean
55
55
---
56
56
---Changes the tree root directory on |DirChanged| and refreshes the tree.
57
57
---(default: `false`)
@@ -63,11 +63,11 @@ error("Cannot require a meta file")
63
63
---
64
64
---Change cwd of nvim-tree to that of new buffer's when opening nvim-tree.
65
65
---(default: `false`)
66
-
---@fieldrespect_buf_cwd? boolean
66
+
---@fieldrespect_buf_cwd? boolean
67
67
---
68
68
---Use |vim.ui.select| style prompts. Necessary when using a UI prompt decorator such as dressing.nvim or telescope-ui-select.nvim
69
69
---(default: `false`)
70
-
---@fieldselect_prompts? boolean
70
+
---@fieldselect_prompts? boolean
71
71
---
72
72
---|nvim_tree.Config.Sort|
73
73
---@fieldsort? nvim_tree.Config.Sort
@@ -246,37 +246,83 @@ error("Cannot require a meta file")
246
246
-- Modified
247
247
--
248
248
249
+
---Indicate which file have unsaved modification.
250
+
---To see modified status in the tree you will need to set:
251
+
--- - |nvim_tree.Config.Renderer.Icons.Show| `modified` to `true` OR
252
+
--- - |nvim_tree.Config.Renderer| `highlight_modified` to `true`
249
253
---@classnvim_tree.Config.Modified
250
-
---@fieldenable? boolean Enable / disable the feature. Default: `false`
251
-
---@fieldshow_on_dirs? boolean Show modified indication on directory whose children are modified. Default: `true`
252
-
---@fieldshow_on_open_dirs? boolean Show modified indication on open directories. Only relevant when |modified.show_on_dirs| is `true`. Default: `false` @see nvim-tree.modified.show_on_dirs
254
+
---
255
+
---Enable modified.
256
+
---(default: `false`)
257
+
---@fieldenable? boolean
258
+
---
259
+
---Show modified indication on directory whose children are modified.
260
+
---(default: `true`)
261
+
---@fieldshow_on_dirs? boolean
262
+
---
263
+
---Show modified indication on open directories. Only relevant when `show_on_dirs` is `true`.
264
+
---(default: `false`)
265
+
---@fieldshow_on_open_dirs? boolean
253
266
254
267
--
255
268
-- Tab
256
269
--
257
270
271
+
258
272
---@classnvim_tree.Config.Tab
259
-
---@fieldsync? nvim_tree.Config.Tab.Sync Configuration for syncing nvim-tree across tabs.
273
+
---
274
+
---|nvim_tree.Config.Tab.Sync|
275
+
---@fieldsync? nvim_tree.Config.Tab.Sync
276
+
277
+
--
278
+
-- Tab.Sync
279
+
--
260
280
281
+
---Configuration for syncing nvim-tree across tabs.
261
282
---@classnvim_tree.Config.Tab.Sync
262
-
---@fieldopen? boolean Opens the tree automatically when switching tabpage or opening a new tabpage if the tree was previously open. Default: `false`
263
-
---@fieldclose? boolean Closes the tree across all tabpages when the tree is closed. Default: `false`
264
-
---@fieldignore? string[] List of filetypes or buffer names on new tab that will prevent |nvim-tree.tab.sync.open| and |nvim-tree.tab.sync.close| Default: `{}`
283
+
---
284
+
---Opens the tree automatically when switching tabpage or opening a new tabpage if the tree was previously open.
285
+
---(default: `false`)
286
+
---@fieldopen? boolean
287
+
---
288
+
---Closes the tree across all tabpages when the tree is closed.
289
+
---(default: `false`)
290
+
---@fieldclose? boolean
291
+
---
292
+
---
293
+
---List of filetypes or buffer names on new tab that will prevent `open` and `close`
294
+
---(default: `{}`)
295
+
---@fieldignore? string[]
265
296
266
297
--
267
298
-- Trash
268
299
--
269
300
270
301
---@classnvim_tree.Config.Trash
271
-
---@fieldcmd? string The command used to trash items (must be installed on your system). Default linux `"gio trash"` from glib2 is a commonly shipped linux package. macOS default `"trash"` requires the homebrew package `trash` Windows default `"trash"` requires `trash-cli` or similar Default: `"gio trash"` or `"trash"`
302
+
---
303
+
---The command used to trash items, which must be installed on your system.
304
+
--- - linux: `gio trash`, from linux package `glib2`
305
+
--- - macOS: `trash`, from homebrew package `trash`
306
+
--- - windows: `trash`, requires `trash-cli` or similar
307
+
---(default: `gio trash` or `trash`)
308
+
---@fieldcmd? string
272
309
273
310
--
274
311
-- Live Filter
275
312
--
276
313
314
+
--- Configurations for the live_filtering feature. The live filter allows you to filter the tree nodes dynamically, based on regex matching (see |vim.regex|).
315
+
---
316
+
--- This feature is bound to the `f` key by default. The filter can be cleared with the `F` key by default.
277
317
---@classnvim_tree.Config.LiveFilter
278
-
---@fieldprefix? string Prefix of the filter displayed in the buffer. Default: `"[FILTER]: "`
279
-
---@fieldalways_show_folders? boolean Whether to filter folders or not. Default: `true`
0 commit comments