Skip to content

Commit ece4c37

Browse files
committed
highlight_modified is highlight_opened_files
1 parent b14b135 commit ece4c37

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

doc/nvim-tree-lua.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ Subsequent calls to setup will replace the previous configuration.
222222
highlight_git = false,
223223
full_name = false,
224224
highlight_opened_files = "none",
225-
highlight_modified = false,
225+
highlight_modified = "none",
226226
root_folder_label = ":~:s?$?/..?",
227227
indent_width = 2,
228228
indent_markers = {
@@ -806,10 +806,11 @@ UI rendering setup
806806
Type: `string`, Default: `"none"`
807807

808808
*nvim-tree.renderer.highlight_modified*
809-
Enable file highlight for modified files using NvimTreeModified highlight
810-
groups.
809+
Highlight icons and/or names for modified files using `NvimTreeModified`
810+
highlight groups.
811+
Value can be `"none"`, `"icon"`, `"name"` or `"all"`
811812
This can be used with or without the icons.
812-
Type: `boolean`, Default `false`
813+
Type: `string`, Default `"none"`
813814

814815
*nvim-tree.renderer.root_folder_label* (previously `renderer.root_folder_modifier`)
815816
In what format to show root folder. See `:help filename-modifiers` for

lua/nvim-tree.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ local DEFAULT_OPTS = { -- BEGIN_DEFAULT_OPTS
523523
highlight_git = false,
524524
full_name = false,
525525
highlight_opened_files = "none",
526-
highlight_modified = false,
526+
highlight_modified = "none",
527527
root_folder_label = ":~:s?$?/..?",
528528
indent_width = 2,
529529
indent_markers = {

0 commit comments

Comments
 (0)