updated options / doc

This commit is contained in:
chomosuke 2023-01-09 18:51:05 +13:00
parent 921b25876d
commit 2dc73211d5
2 changed files with 50 additions and 6 deletions

View file

@ -331,7 +331,7 @@ applying configuration.
group_empty = false,
highlight_git = false,
full_name = false,
highlight_opened_files = "none",
highlight_opened = "none",
highlight_modified = "none",
root_folder_label = ":~:s?$?/..?",
indent_width = 2,
@ -350,6 +350,7 @@ applying configuration.
webdev_colors = true,
git_placement = "before",
modified_placement = "after",
opened_placement = "after",
padding = " ",
symlink_arrow = " ➛ ",
show = {
@ -364,6 +365,7 @@ applying configuration.
symlink = "",
bookmark = "󰆤",
modified = "●",
opened = "",
folder = {
arrow_closed = "",
arrow_open = "",
@ -441,6 +443,11 @@ applying configuration.
show_on_dirs = true,
show_on_open_dirs = true,
},
opened = {
enable = false,
show_on_dirs = true,
show_on_open_dirs = true,
},
actions = {
use_system_clipboard = true,
change_dir = {
@ -648,7 +655,6 @@ Open a file or directory in your preferred application.
*nvim-tree.diagnostics*
Show LSP and COC diagnostics in the signcolumn
Note that the modified sign will take precedence over the diagnostics signs.
`NOTE`: it will use the default diagnostic color groups to highlight the signs.
If you wish to customize, you can override these groups:
@ -742,8 +748,28 @@ Indicate which file have unsaved modification.
Type: `boolean`, Default: `true`
You will still need to set |renderer.icons.show.modified| `= true` or
|renderer.highlight_modified| `= true` to be able to see things in the
tree.
|renderer.highlight_modified| `= "all" | "icon" | "name"` to be able to
see things in the tree.
*nvim-tree.opened*
Indicate which file are currently opened.
*nvim-tree.opened.enable*
Enable / disable the feature.
Type: `boolean`, Default: `false`
*nvim-tree.opened.show_on_dirs*
Show opened indication on directory whose children are opened.
Type: `boolean`, Default: `true`
*nvim-tree.opened.show_on_open_dirs*
Show opened indication on open directories.
Only relevant when |opened.show_on_dirs| is `true`.
Type: `boolean`, Default: `true`
You will still need to set |renderer.icons.show.opened| `= true` or
|renderer.highlight_opened| `= "all" | "icon" | "name"` to be able to
see things in the tree.
*nvim-tree.filesystem_watchers*
Will use file system watcher (libuv fs_event) to watch the filesystem for
@ -960,6 +986,8 @@ UI rendering setup
*nvim-tree.renderer.icons*
Configuration options for icons.
Note: signcolumn icon precedence: modified > opened > diagnostic > git
*nvim-tree.renderer.icons.webdev_colors*
Use the webdev icon colors, otherwise `NvimTreeFileIcon`.
Type: `boolean`, Default: `true`
@ -968,7 +996,6 @@ UI rendering setup
Place where the git icons will be rendered.
Can be `"after"` or `"before"` filename (after the file/folders icons)
or `"signcolumn"` (requires |nvim-tree.view.signcolumn| enabled).
Note that the diagnostic signs and the modified sign will take precedence over the git signs.
Type: `string`, Default: `before`
*nvim-tree.renderer.icons.modified_placement*
@ -977,6 +1004,12 @@ UI rendering setup
or `"signcolumn"` (requires |nvim-tree.view.signcolumn| enabled).
Type: `string`, Default: `after`
*nvim-tree.renderer.icons.opened_placement*
Place where the opened icon will be rendered.
Can be `"after"` or `"before"` filename (after the file/folders icons)
or `"signcolumn"` (requires |nvim-tree.view.signcolumn| enabled).
Type: `string`, Default: `after`
*nvim-tree.renderer.icons.padding*
Inserted between icon and filename.
Type: `string`, Default: `" "`
@ -1028,6 +1061,10 @@ UI rendering setup
Icon to display for modified files.
Type: `string`, Default: `"●"`
*nvim-tree.renderer.icons.glyphs.opened*
Icon to display for opened files.
Type: `string`, Default: `""`
*nvim-tree.renderer.icons.glyphs.folder*
Glyphs for directories.
Type: `table`, Default:

View file

@ -389,7 +389,7 @@ local DEFAULT_OPTS = { -- BEGIN_DEFAULT_OPTS
group_empty = false,
highlight_git = false,
full_name = false,
highlight_opened_files = "none",
highlight_opened = "none",
highlight_modified = "none",
root_folder_label = ":~:s?$?/..?",
indent_width = 2,
@ -408,6 +408,7 @@ local DEFAULT_OPTS = { -- BEGIN_DEFAULT_OPTS
webdev_colors = true,
git_placement = "before",
modified_placement = "after",
opened_placement = "after",
padding = " ",
symlink_arrow = "",
show = {
@ -422,6 +423,7 @@ local DEFAULT_OPTS = { -- BEGIN_DEFAULT_OPTS
symlink = "",
bookmark = "󰆤",
modified = "",
opened = "",
folder = {
arrow_closed = "",
arrow_open = "",
@ -499,6 +501,11 @@ local DEFAULT_OPTS = { -- BEGIN_DEFAULT_OPTS
show_on_dirs = true,
show_on_open_dirs = true,
},
opened = {
enable = false,
show_on_dirs = true,
show_on_open_dirs = true,
},
actions = {
use_system_clipboard = true,
change_dir = {