@@ -222,6 +222,7 @@ Subsequent calls to setup will replace the previous configuration.
222
222
highlight_git = false,
223
223
full_name = false,
224
224
highlight_opened_files = "none",
225
+ highlight_modified = false,
225
226
root_folder_label = ":~:s?$?/..?",
226
227
indent_width = 2,
227
228
indent_markers = {
@@ -240,6 +241,8 @@ Subsequent calls to setup will replace the previous configuration.
240
241
git_placement = "before",
241
242
padding = " ",
242
243
symlink_arrow = " ➛ ",
244
+ modified = "[+]",
245
+ modified_placement = "after",
243
246
show = {
244
247
file = true,
245
248
folder = true,
@@ -324,6 +327,12 @@ Subsequent calls to setup will replace the previous configuration.
324
327
show_on_open_dirs = true,
325
328
timeout = 400,
326
329
},
330
+ modified = {
331
+ enable = false,
332
+ show_on_dirs = true,
333
+ show_on_open_dirs = false,
334
+ debounce_delay = 50,
335
+ },
327
336
actions = {
328
337
use_system_clipboard = true,
329
338
change_dir = {
@@ -542,6 +551,7 @@ Configuration options for the system open command.
542
551
543
552
*nvim-tree.diagnostics*
544
553
Show LSP and COC diagnostics in the signcolumn
554
+ Note that the modified sign will take precedence over the diagnostics signs.
545
555
546
556
`NOTE` : it will use the default diagnostic color groups to highlight the signs.
547
557
If you wish to customize, you can override these groups:
@@ -617,6 +627,28 @@ Git integration with icons and colors.
617
627
milliseconds but a few seconds), it will not render anything until the git
618
628
process returned the data.
619
629
630
+ *nvim-tree.modified*
631
+ Indicate which file have unsaved modification.
632
+
633
+ *nvim-tree.modified.enable*
634
+ Enable / disable the feature.
635
+ Type: `boolean ` , Default: `false`
636
+
637
+ *nvim-tree.modified.show_on_dirs*
638
+ Show modified indication on directory whose children are modified.
639
+ Type: `boolean ` , Default: `true`
640
+
641
+ *nvim-tree.modified.show_on_open_dirs*
642
+ Show modified indication on open directories.
643
+ Only relevant when | modified.show_on_dirs | is `true` .
644
+ Type: `boolean ` , Default: `false`
645
+
646
+ *nvim-tree.modified.debounce_delay*
647
+ Idle milliseconds between the file is modified and action.
648
+ This helps performance when large number of files are modified in quick
649
+ succession (e.g. lsp rename).
650
+ Type: `number ` , Default: `50 ` (ms)
651
+
620
652
*nvim-tree.filesystem_watchers*
621
653
Will use file system watcher (libuv fs_event) to watch the filesystem for
622
654
changes.
@@ -773,6 +805,12 @@ UI rendering setup
773
805
Value can be `" none" ` , `" icon" ` , `" name" ` or `" all" ` .
774
806
Type: `string ` , Default: `" none" `
775
807
808
+ *nvim-tree.renderer.highlight_modified*
809
+ Enable file highlight for modified files using NvimTreeModified highlight
810
+ groups.
811
+ This can be used with or without the icons.
812
+ Type: `boolean ` , Default `false`
813
+
776
814
*nvim-tree.renderer.root_folder_label* (previously `renderer.root_folder_modifier` )
777
815
In what format to show root folder. See `:help filename-modifiers` for
778
816
available `string ` options.
@@ -815,7 +853,7 @@ UI rendering setup
815
853
Place where the git icons will be rendered.
816
854
Can be `" after" ` or `" before" ` filename (after the file/folders icons)
817
855
or `" signcolumn" ` (requires | nvim-tree.view.signcolumn | enabled).
818
- Note that the diagnostic signs will take precedence over the git signs.
856
+ Note that the diagnostic signs and the modified sign will take precedence over the git signs.
819
857
Type: `string ` , Default: `before`
820
858
821
859
*nvim-tree.renderer.icons.padding*
@@ -827,6 +865,17 @@ UI rendering setup
827
865
Used as a separator between symlinks' source and target.
828
866
Type: `string ` , Default: `" ➛ "`
829
867
868
+ *nvim-tree.renderer.icons.modified*
869
+ Icon to display for modified files. Can be multiple characters if
870
+ | renderer.icons.modified_placement | isn't `" signcolumn" ` .
871
+ Type: `string ` , Default: `" [+]" `
872
+
873
+ *nvim-tree.renderer.icons.modified_placement*
874
+ Place where the modified icon will be rendered.
875
+ Can be `" after" ` or `" before" ` filename (after the file/folders icons)
876
+ or `" signcolumn" ` (requires | nvim-tree.view.signcolumn | enabled).
877
+ Type: `string ` , Default: `after`
878
+
830
879
*nvim-tree.renderer.icons.show*
831
880
Configuration options for showing icon types.
832
881
0 commit comments