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
+47-12Lines changed: 47 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -20,19 +20,54 @@ error("Cannot require a meta file")
20
20
--
21
21
22
22
---@classnvim_tree.Config
23
+
---
24
+
---Runs when creating the nvim-tree buffer. Use this to set your nvim-tree specific mappings. See |nvim-tree-mappings|. When `on_attach` is not a function, |nvim-tree-mappings-default| will be called.
23
25
---@fieldon_attach? string|fun(bufnr: integer)
24
-
---@fieldauto_reload_on_write? boolean Reloads the explorer every time a buffer is written to. Default: `true`
---@fieldhijack_cursor? boolean Keeps the cursor on the first letter of the filename when moving in the tree. Default: `false`
27
-
---@fieldhijack_netrw? boolean Hijack netrw windows (overridden if |disable_netrw| is `true`) Default: `true`
28
-
---@fieldhijack_unnamed_buffer_when_opening? boolean Opens in place of the unnamed buffer if it's empty. Default: `false`
29
-
---@fieldprefer_startup_root? boolean Prefer startup root directory when updating root directory of the tree. Only relevant when `update_focused_file.update_root` is `true` Default: `false` @see nvim-tree.update_focused_file.update_root
30
-
---@fieldreload_on_bufenter? boolean Automatically reloads the tree on `BufEnter` nvim-tree. Default: `false`
31
-
---@fieldrespect_buf_cwd? boolean Will change cwd of nvim-tree to that of new buffer's when opening nvim-tree. Default: `false`
32
-
---@fieldselect_prompts? boolean Use |vim.ui.select| style prompts. Necessary when using a UI prompt decorator such as dressing.nvim or telescope-ui-select.nvim Default: `false`
33
-
---@fieldsync_root_with_cwd? boolean Changes the tree root directory on `DirChanged` and refreshes the tree. Default: `false`
34
-
---@fieldroot_dirs? string[] Preferred root directories. Only relevant when `update_focused_file.update_root` is `true` Default: `{}` @see nvim-tree.update_focused_file.update_root
35
-
---@fieldexperimental? table Experimental features that may become default or optional functionality. In the event of a problem please disable the experiment and raise an issue.
26
+
---
27
+
---Keeps the cursor on the first letter of the filename when moving in the tree.
28
+
---(default: `false`)
29
+
---@fieldhijack_cursor? boolean
30
+
---
31
+
---Reloads the explorer every time a buffer is written to.
32
+
---(default: `true`)
33
+
---@fieldauto_reload_on_write? boolean
34
+
---
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
+
---(default: `false`)
37
+
---@fielddisable_netrw? boolean
38
+
---
39
+
---Hijack netrw windows, ignored when `disable_netrw` is `true`
40
+
---(default: `true`)
41
+
---@fieldhijack_netrw? boolean
42
+
---
43
+
---Opens in place of the unnamed buffer if it's empty.
44
+
---(default: `false`)
45
+
---TODO reinstate this one when formatting is done #2934
---Preferred root directories. Only relevant when |nvim_tree.Config.UpdateFocusedFile| `update_root` is `true`
50
+
---@fieldroot_dirs? string[]
51
+
---
52
+
---Prefer startup root directory when updating root directory of the tree. Only relevant when |nvim_tree.Config.UpdateFocusedFile| `update_root` is `true`
53
+
---(default: `false`)
54
+
---@fieldprefer_startup_root? boolean
55
+
---
56
+
---Changes the tree root directory on |DirChanged| and refreshes the tree.
57
+
---(default: `false`)
58
+
---@fieldsync_root_with_cwd? boolean
59
+
---
60
+
---Automatically reloads the tree on |BufEnter| nvim-tree.
61
+
---(default: `false`)
62
+
---@fieldreload_on_bufenter? boolean
63
+
---
64
+
---Change cwd of nvim-tree to that of new buffer's when opening nvim-tree.
65
+
---(default: `false`)
66
+
---@fieldrespect_buf_cwd? boolean
67
+
---
68
+
---Use |vim.ui.select| style prompts. Necessary when using a UI prompt decorator such as dressing.nvim or telescope-ui-select.nvim
0 commit comments