@@ -1231,9 +1231,11 @@ Config: renderer *nvim-tree-config-renderer*
12311231
12321232 Specify {decorators} is a list e.g. `{ "Git", MyDecorator, "Cut" }`
12331233
1234- {root_folder_label} has 3 forms:
1234+ {root_folder_label} *nvim_tree.config.renderer.root_folder_label*
1235+
1236+ Controls the root folder name and visibility:
12351237 • `string ` : | filename-modifiers | format string, default `" :~:s?$?/..?" `
1236- • `boolean ` : `true` to disable
1238+ • `false` : to disable
12371239 • `fun(root_cwd: string): string`: return a literal string from root's
12381240 absolute path e.g. >lua
12391241 my_root_folder_label = function(path)
@@ -1266,8 +1268,8 @@ Config: renderer *nvim-tree-config-renderer*
12661268 • {full_name}? (`boolean ` , default: `false` ) Display nodes
12671269 whose name length is wider than the width
12681270 of nvim-tree window in floating window.
1269- • {root_folder_label}? (`string | boolean | (fun(root_cwd: string): string) `)
1270- (default: ` " :~:s?$?/..? " ` )
1271+ • {root_folder_label}? (`nvim_tree.config.renderer.root_folder_label` , default: ` " :~:s?$?/..? " ` )
1272+ | nvim_tree.config.renderer.root_folder_label |
12711273 • {indent_width}? (`integer` , default: `2 ` ) Number of spaces
12721274 for each tree nesting level. Minimum 1.
12731275 • {hidden_display}? (`nvim_tree.config.renderer.hidden_display` , default: `none ` )
0 commit comments