A dark beautiful Neovim theme written in Lua.
- Forked from Gruvbox Flat
- supports the latest Neovim 0.8 features like TreeSitter and LSP
- vim terminal colors
- Neovim >= 0.8.0
Install the theme with your preferred package manager:
use("jgottzen/gruvbox-flat.nvim")
{ "jgottzen/gruvbox-flat.nvim", priority = 1000 }
Enable the colorscheme:
vim.cmd.colorscheme("gruvbox-flat")
The default settings are:
require("gruvbox").setup({
style = nil, -- "dark"|"hard"|nil
transparent = false,
italics = {
comments = true,
keywords = true,
functions = false,
variables = false,
},
hide_inactive_statusline = false,
colors = {}, -- table<string, string>, change default color values, the value can refer to another color by name
theme = {}, -- table<string, GruvboxFlatHighlightGroup>, override or add highlight groups, color values can refer to a color by name
dark_float = true,
})
An example:
require("gruvbox").setup({
style = "dark",
colors = {
error = "red",
},
theme = {
-- vim-illuminate highlighting causes the selection to be indistinguishable from its illumination,
-- so we set visual to be darker
Visual = { bg = "bg0" },
VisualNOS = { bg = "bg0" },
FloatBorder = { bg = "bg2" },
-- Fix the separator between extension and main statusline being too dark,
StatusLine = { bg = "bg_visual" },
StatusLineNC = { bg = "bg_visual" },
TabLineFill = { bg = "#1d2021" },
-- symbols-outline
FocusedSymbol = { fg = "bg1", bg = "orange_light", bold = true, italic = true },
},
dark_sidebar = false,
})