Skip to content

Commit 332435e

Browse files
committed
fix(#2415): disambiguate highlight groups, see :help nvim-tree-highlight-overhaul
1 parent 72f3cdb commit 332435e

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

doc/nvim-tree-lua.txt

+12-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ CONTENTS *nvim-tree*
4646
7. Mappings |nvim-tree-mappings|
4747
7.1 Mappings: Default |nvim-tree-mappings-default|
4848
8. Highlight |nvim-tree-highlight|
49-
8.1 Highlight Overhaul |nvim-tree-highlight-overhaul|
49+
8.1 Highlight Default |nvim-tree-highlight-default|
50+
8.2 Highlight Overhaul |nvim-tree-highlight-overhaul|
5051
9. Events |nvim-tree-events|
5152
10. Prompts |nvim-tree-prompts|
5253
11. OS Specific Restrictions |nvim-tree-os-specific|
@@ -2253,7 +2254,16 @@ squigglies: >
22532254
:hi NvimTreeOpenedHL guifg=magenta guisp=red gui=underline
22542255
:hi NvimTreeModifiedFileHL guisp=cyan gui=undercurl
22552256
<
2256-
Default linked group or definition follows name.
2257+
To prevent usage of a highlight:
2258+
- Before setup: link the group to `Normal` e.g.
2259+
`:hi NvimTreeExecFile Normal`
2260+
- After setup: link it to `NONE`, to override the default link e.g.
2261+
`:hi! link NvimTreeExecFile NONE`
2262+
2263+
==============================================================================
2264+
8.1 HIGHLIGHT DEFAULT *nvim-tree-highlight-default*
2265+
2266+
|:highlight-link| `default` or |:highlight-default| define the groups on setup:
22572267

22582268
Standard: >
22592269
NvimTreeNormal Normal

0 commit comments

Comments
 (0)