File tree 2 files changed +35
-2
lines changed
2 files changed +35
-2
lines changed Original file line number Diff line number Diff line change @@ -112,6 +112,23 @@ require("nvim-tree").setup {
112
112
}
113
113
```
114
114
115
+ ### Highlight
116
+
117
+ Run ` :NvimTreeHiTest ` to show all the highlights that nvim-tree uses.
118
+
119
+ They can be customised before or after setup is called and will be immediately
120
+ applied at runtime. e.g.
121
+
122
+ ``` lua
123
+ vim .cmd ([[
124
+ :hi NvimTreeExecFile guifg=#ffa0a0
125
+ :hi NvimTreeSpecialFile guifg=#ff80ff gui=underline
126
+ :hi NvimTreeSymlink guifg=Yellow gui=italic
127
+ :hi link NvimTreeImageFile Title
128
+ ]] )
129
+ ```
130
+ See [ : help nvim-tree-highlight] ( doc/nvim-tree-lua.txt ) for details.
131
+
115
132
## Commands
116
133
117
134
See [ : help nvim-tree-commands] ( doc/nvim-tree-lua.txt )
Original file line number Diff line number Diff line change @@ -238,8 +238,15 @@ via |nvim-tree.on_attach| e.g. >
238
238
Run | :NvimTreeHiTest | to show all the highlights that nvim-tree uses.
239
239
240
240
They can be customised before or after setup is called and will be immediately
241
- applied at runtime.
242
-
241
+ applied at runtime. e.g. >
242
+
243
+ vim.cmd([[
244
+ :hi NvimTreeExecFile guifg=#ffa0a0
245
+ :hi NvimTreeSpecialFile guifg=#ff80ff gui=underline
246
+ :hi NvimTreeSymlink guifg=Yellow gui=italic
247
+ :hi link NvimTreeImageFile Title
248
+ ]])
249
+ <
243
250
See | nvim-tree-highlight | for details.
244
251
245
252
==============================================================================
@@ -2444,6 +2451,15 @@ Diagnostics Folder Highlight: >
2444
2451
- NvimTreeSpecialFile PreProc -> SpellCap
2445
2452
- NvimTreeSymlink Statement -> SpellCap
2446
2453
2454
+ Approximate pre-overhaul values for the `SpellCap ` groups may be set via: >
2455
+
2456
+ vim.cmd([[
2457
+ :hi NvimTreeExecFile gui=bold guifg=#ffa0a0
2458
+ :hi NvimTreeSymlink gui=bold guifg=#ffff60
2459
+ :hi NvimTreeSpecialFile gui=bold,underline guifg=#ff80ff
2460
+ :hi NvimTreeImageFile gui=bold guifg=#ff80ff
2461
+ ]])
2462
+ <
2447
2463
Legacy highlight group are still obeyed when they are defined and the current
2448
2464
highlight group is not, hard linking as follows: >
2449
2465
You can’t perform that action at this time.
0 commit comments