NOTE: this theme is only being updated on themes.nvim
Just another gruvbox theme.
- Customizable.
- Made to work with treesitter.
- Support for built-in LSP.
- Support for some of the most popular plugins.
- Soft contrast for eye protection.
- Multiple options to enable italic and bold text.
- Vivid colors.
- Neovim >= 5.0
NOTE: doesn't support Vim, it uses lua.
Use your favorite plugin manager. Example packer:
use "rafamadriz/gruvbox"
To set the theme you can use the following.
vim.cmd[[colorscheme gruvbox]]
To see all the available options do :help gruvbox-configuration
in Neovim
Note: the configuration options should be placed before
vim.cmd[[colorscheme gruvbox]]
To see all the options from neovim, you can execute
:help gruvbox.txt
Option | Default | Description |
---|---|---|
gruvbox_style |
"medium" | options are "medium" and "hard" |
gruvbox_italic_comment |
true | Italic text for comments |
gruvbox_italic_keyword |
false | Applies to conditionals and keywords like for , do , while , loops etc. |
gruvbox_italic_boolean |
false | true and false |
gruvbox_italic_function |
false | Applies to function (calls and definitions), method (calls and definitions) and built-in functions. |
gruvbox_italic_variable |
false | Applies to variable names that are defined by the languages, like this or self . And any variable name that does not have another highlight group. |
gruvbox_bold |
false | Applies to error and warning messages, functions (calls and definitions), lsp virtual text, etc. |
vim.g.gruvbox_italic_keyword = true
vim.g.gruvbox_italic_function = true
vim.cmd[[colorscheme gruvbox]]
It doesn't work as expected.
-
This color scheme is mainly designed for true colors, make sure of setting:
vim.o.termguicolors = true
-
To test if your terminal supports true colors, use the following script.
-
This colorscheme is made to look good with treesitter, if you don't have it, it won't look the same as the screenshoots.
-
Install a font that supports italics, for example JetBrains-NerdFont is an excellent font.
-
Set the correct italic font for your terminal of choice.
-
Enable italic text. E.g.
vim.g.gruvbox_italic_keyword = true