1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
|
*gruvbox.nvim.txt* For Neovim >= 0.8.0 Last change: 2025 April 27
==============================================================================
Table of Contents *gruvbox.nvim-table-of-contents*
1. Prerequisites |gruvbox.nvim-prerequisites|
2. Installing |gruvbox.nvim-installing|
- Using packer |gruvbox.nvim-installing-using-packer|
- Using lazy.nvim |gruvbox.nvim-installing-using-lazy.nvim|
- Using vim-plug |gruvbox.nvim-installing-using-vim-plug|
3. Basic Usage |gruvbox.nvim-basic-usage|
4. Configuration |gruvbox.nvim-configuration|
- Overriding |gruvbox.nvim-configuration-overriding|
>
<h1> <img src="https://i.postimg.cc/WpQzgxVh/plugin-Icon.png" width="80px"><br/>gruvbox.nvim</h1>
</div>
<
A port of gruvbox community <https://github.com/gruvbox-community/gruvbox>
theme to lua with treesitter
<https://github.com/nvim-treesitter/nvim-treesitter> and |semantic highlights|
support!
==============================================================================
1. Prerequisites *gruvbox.nvim-prerequisites*
Neovim 0.8.0+
==============================================================================
2. Installing *gruvbox.nvim-installing*
USING PACKER *gruvbox.nvim-installing-using-packer*
>lua
use { "ellisonleao/gruvbox.nvim" }
<
USING LAZY.NVIM *gruvbox.nvim-installing-using-lazy.nvim*
>lua
{ "ellisonleao/gruvbox.nvim", priority = 1000 , config = true, opts = ...}
<
USING VIM-PLUG *gruvbox.nvim-installing-using-vim-plug*
>vim
Plug 'ellisonleao/gruvbox.nvim'
<
==============================================================================
3. Basic Usage *gruvbox.nvim-basic-usage*
Inside `init.vim`
>vim
set background=dark " or light if you want light mode
colorscheme gruvbox
<
Inside `init.lua`
>lua
vim.o.background = "dark" -- or "light" for light mode
vim.cmd([[colorscheme gruvbox]])
<
==============================================================================
4. Configuration *gruvbox.nvim-configuration*
Additional settings for gruvbox are:
>lua
-- Default options:
require("gruvbox").setup({
terminal_colors = true, -- add neovim terminal colors
undercurl = true,
underline = true,
bold = true,
italic = {
strings = true,
emphasis = true,
comments = true,
operators = false,
folds = true,
},
strikethrough = true,
invert_selection = false,
invert_signs = false,
invert_tabline = false,
inverse = true, -- invert background for search, diffs, statuslines and errors
contrast = "", -- can be "hard", "soft" or empty string
palette_overrides = {},
overrides = {},
dim_inactive = false,
transparent_mode = false,
})
vim.cmd("colorscheme gruvbox")
<
**VERY IMPORTANT**Make sure to call setup() **BEFORE** calling the colorscheme
command, to use your custom configs
OVERRIDING *gruvbox.nvim-configuration-overriding*
PALETTE ~
You can specify your own palette colors. For example:
>lua
require("gruvbox").setup({
palette_overrides = {
bright_green = "#990000",
}
})
vim.cmd("colorscheme gruvbox")
<
HIGHLIGHT GROUPS ~
If you don’t enjoy the current color for a specific highlight group, now you
can just override it in the setup. For example:
>lua
require("gruvbox").setup({
overrides = {
SignColumn = {bg = "#ff9900"}
}
})
vim.cmd("colorscheme gruvbox")
<
It also works with treesitter groups and lsp semantic highlight tokens
>lua
require("gruvbox").setup({
overrides = {
["@lsp.type.method"] = { bg = "#ff9900" },
["@comment.lua"] = { bg = "#000000" },
}
})
vim.cmd("colorscheme gruvbox")
<
Please note that the override values must follow the attributes from the
highlight group map, such as:
- **fg** - foreground color
- **bg** - background color
- **bold** - true or false for bold font
- **italic** - true or false for italic font
Other values can be seen in |`synIDattr`|
Generated by panvimdoc <https://github.com/kdheepak/panvimdoc>
vim:tw=78:ts=8:noet:ft=help:norl:
|