Skip to content

Commit cb98892

Browse files
committed
doc: add hitest notes and add termguicolors to example setups
1 parent 65c2ba8 commit cb98892

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ Setup should be run in a lua file or in a lua heredoc [:help lua-heredoc](https:
6262
vim.g.loaded_netrw = 1
6363
vim.g.loaded_netrwPlugin = 1
6464

65+
-- set termguicolors to enable highlight groups
66+
vim.opt.termguicolors = true
67+
6568
-- empty setup using defaults
6669
require("nvim-tree").setup()
6770

doc/nvim-tree-lua.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ Setup should be run in a lua file or in a |lua-heredoc| if using in a vim file.
6969
vim.g.loaded_netrw = 1
7070
vim.g.loaded_netrwPlugin = 1
7171

72+
-- set termguicolors to enable highlight groups
73+
vim.opt.termguicolors = true
74+
7275
-- empty setup using defaults
7376
require("nvim-tree").setup()
7477

@@ -1337,6 +1340,9 @@ Example (in your `init.vim`):
13371340
You should have 'termguicolors' enabled, otherwise, colors will not be
13381341
applied.
13391342

1343+
To view the active highlight groups run `:so $VIMRUNTIME/syntax/hitest.vim`
1344+
as per |:highlight|
1345+
13401346
Default linked group follows name.
13411347

13421348
NvimTreeSymlink

0 commit comments

Comments
 (0)