committed by
GitHub
parent
48d53a5934
commit
e16083cb01
@@ -749,6 +749,7 @@ Window / buffer setup.
|
||||
Type: `number`, Default: `15` (ms)
|
||||
|
||||
*nvim-tree.view.hide_root_folder*
|
||||
Deprecated: please set |nvim-tree.renderer.root_folder_label| to `false`.
|
||||
Hide the path of the current working directory on top of the tree.
|
||||
Type: `boolean`, Default: `false`
|
||||
|
||||
@@ -868,13 +869,14 @@ UI rendering setup
|
||||
This can be used with or without the icons.
|
||||
Type: `string`, Default `"none"`
|
||||
|
||||
*nvim-tree.renderer.root_folder_label* (previously `renderer.root_folder_modifier`)
|
||||
*nvim-tree.renderer.root_folder_label*
|
||||
In what format to show root folder. See `:help filename-modifiers` for
|
||||
available `string` options.
|
||||
Type: `string` or `function(root_cwd)`, Default: `":~:s?$?/..?"`
|
||||
Set to `false` to hide the root folder.
|
||||
Type: `string` or `boolean` or `function(root_cwd)`, Default: `":~:s?$?/..?"`
|
||||
|
||||
Function is passed the absolute path of the root folder and should return a string.
|
||||
e.g. >
|
||||
Function is passed the absolute path of the root folder and should
|
||||
return a string. e.g. >
|
||||
my_root_folder_label = function(path)
|
||||
return ".../" .. vim.fn.fnamemodify(path, ":t")
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user