aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md1
-rw-r--r--doc/gruvbox.nvim.txt3
-rw-r--r--lua/gruvbox.lua73
-rw-r--r--tests/gruvbox/gruvbox_spec.lua1
4 files changed, 62 insertions, 16 deletions
diff --git a/README.md b/README.md
index 366abbb..e6be567 100644
--- a/README.md
+++ b/README.md
@@ -74,7 +74,6 @@ require("gruvbox").setup({
invert_selection = false,
invert_signs = false,
invert_tabline = false,
- invert_intend_guides = false,
inverse = true, -- invert background for search, diffs, statuslines and errors
contrast = "", -- can be "hard", "soft" or empty string
palette_overrides = {},
diff --git a/doc/gruvbox.nvim.txt b/doc/gruvbox.nvim.txt
index 7a3216a..6a8337d 100644
--- a/doc/gruvbox.nvim.txt
+++ b/doc/gruvbox.nvim.txt
@@ -1,4 +1,4 @@
-*gruvbox.nvim.txt* For Neovim >= 0.8.0 Last change: 2025 March 26
+*gruvbox.nvim.txt* For Neovim >= 0.8.0 Last change: 2025 May 10
==============================================================================
Table of Contents *gruvbox.nvim-table-of-contents*
@@ -95,7 +95,6 @@ Additional settings for gruvbox are:
invert_selection = false,
invert_signs = false,
invert_tabline = false,
- invert_intend_guides = false,
inverse = true, -- invert background for search, diffs, statuslines and errors
contrast = "", -- can be "hard", "soft" or empty string
palette_overrides = {},
diff --git a/lua/gruvbox.lua b/lua/gruvbox.lua
index 493fac8..cd81874 100644
--- a/lua/gruvbox.lua
+++ b/lua/gruvbox.lua
@@ -29,20 +29,21 @@ local Gruvbox = {}
---@field nocombine boolean?
---@class GruvboxConfig
----@field terminal_colors boolean?
----@field undercurl boolean?
----@field underline boolean?
---@field bold boolean?
----@field italic ItalicConfig?
----@field strikethrough boolean?
---@field contrast Contrast?
+---@field dim_inactive boolean?
+---@field inverse boolean?
---@field invert_selection boolean?
---@field invert_signs boolean?
---@field invert_tabline boolean?
----@field invert_intend_guides boolean?
----@field inverse boolean?
+---@field italic ItalicConfig?
---@field overrides table<string, HighlightDefinition>?
---@field palette_overrides table<string, string>?
+---@field strikethrough boolean?
+---@field terminal_colors boolean?
+---@field transparent_mode boolean?
+---@field undercurl boolean?
+---@field underline boolean?
Gruvbox.config = {
terminal_colors = true,
undercurl = true,
@@ -59,7 +60,6 @@ Gruvbox.config = {
invert_selection = false,
invert_signs = false,
invert_tabline = false,
- invert_intend_guides = false,
inverse = true,
contrast = "",
palette_overrides = {},
@@ -306,8 +306,8 @@ local function get_groups()
CurSearch = { link = "IncSearch" },
QuickFixLine = { link = "GruvboxPurple" },
Underlined = { fg = colors.blue, underline = config.underline },
- StatusLine = { fg = colors.bg2, bg = colors.fg1, reverse = config.inverse },
- StatusLineNC = { fg = colors.bg1, bg = colors.fg4, reverse = config.inverse },
+ StatusLine = { fg = colors.fg1, bg = colors.bg2 },
+ StatusLineNC = { fg = colors.fg4, bg = colors.bg1 },
WinBar = { fg = colors.fg4, bg = colors.bg0 },
WinBarNC = { fg = colors.fg3, bg = colors.bg1 },
WinSeparator = config.transparent_mode and { fg = colors.bg3, bg = nil } or { fg = colors.bg3, bg = colors.bg0 },
@@ -397,6 +397,7 @@ local function get_groups()
DiagnosticVirtualTextHint = { link = "GruvboxAqua" },
DiagnosticVirtualTextOk = { link = "GruvboxGreen" },
LspReferenceRead = { link = "GruvboxYellowBold" },
+ LspReferenceTarget = { link = "Visual" },
LspReferenceText = { link = "GruvboxYellowBold" },
LspReferenceWrite = { link = "GruvboxOrangeBold" },
LspCodeLens = { link = "GruvboxGray" },
@@ -478,15 +479,25 @@ local function get_groups()
CocWarningHighlight = { link = "GruvboxOrangeUnderline" },
CocInfoHighlight = { link = "GruvboxBlueUnderline" },
CocHintHighlight = { link = "GruvboxAquaUnderline" },
+ SnacksPicker = { link = "GruvboxFg1" },
+ SnacksPickerBorder = { link = "SnacksPicker" },
+ SnacksPickerListCursorLine = { link = "CursorLine" },
+ SnacksPickerMatch = { link = "GruvboxOrange" },
+ SnacksPickerPrompt = { link = "GruvboxRed" },
+ SnacksPickerTitle = { link = "SnacksPicker" },
+ SnacksPickerDir = { link = "GruvboxGray" },
+ SnacksPickerPathHidden = { link = "GruvboxGray" },
+ SnacksPickerGitStatusUntracked = { link = "GruvboxGray" },
+ SnacksPickerPathIgnored = { link = "GruvboxBg3" },
TelescopeNormal = { link = "GruvboxFg1" },
- TelescopeSelection = { link = "GruvboxOrangeBold" },
+ TelescopeSelection = { link = "CursorLine" },
TelescopeSelectionCaret = { link = "GruvboxRed" },
TelescopeMultiSelection = { link = "GruvboxGray" },
TelescopeBorder = { link = "TelescopeNormal" },
TelescopePromptBorder = { link = "TelescopeNormal" },
TelescopeResultsBorder = { link = "TelescopeNormal" },
TelescopePreviewBorder = { link = "TelescopeNormal" },
- TelescopeMatching = { link = "GruvboxBlue" },
+ TelescopeMatching = { link = "GruvboxOrange" },
TelescopePromptPrefix = { link = "GruvboxRed" },
TelescopePrompt = { link = "TelescopeNormal" },
CmpItemAbbr = { link = "GruvboxFg0" },
@@ -1112,6 +1123,11 @@ local function get_groups()
MiniTestFail = { link = "GruvboxRedBold" },
MiniTestPass = { link = "GruvboxGreenBold" },
MiniTrailspace = { bg = colors.red },
+ WhichKeyTitle = { link = "NormalFloat" },
+ NeoTreeFloatBorder = { link = "GruvboxGray" },
+ NeoTreeTitleBar = { fg = colors.fg1, bg = colors.bg2 },
+ NeoTreeDirectoryIcon = { link = "GruvboxGreen" },
+ NeoTreeDirectoryName = { link = "GruvboxGreenBold" },
["@comment"] = { link = "Comment" },
["@none"] = { bg = "NONE", fg = "NONE" },
["@preproc"] = { link = "PreProc" },
@@ -1246,6 +1262,39 @@ local function get_groups()
["@lsp.type.type"] = { link = "@type" },
["@lsp.type.typeParameter"] = { link = "@type.definition" },
["@lsp.type.variable"] = { link = "@variable" },
+
+ -- NeoTreeDirectoryName = { link = "Directory" },
+ -- NeoTreeDotfile = { fg = colors.fg4 },
+ -- NeoTreeFadeText1 = { fg = colors.fg3 },
+ -- NeoTreeFadeText2 = { fg = colors.fg4 },
+ -- NeoTreeFileIcon = { fg = colors.blue },
+ -- NeoTreeFileName = { fg = colors.fg1 },
+ -- NeoTreeFileNameOpened = { fg = colors.fg1, bold = true },
+ -- NeoTreeFileStats = { fg = colors.fg3 },
+ -- NeoTreeFileStatsHeader = { fg = colors.fg2, italic = true },
+ -- NeoTreeFilterTerm = { link = "SpecialChar" },
+ -- NeoTreeHiddenByName = { link = "NeoTreeDotfile" },
+ -- NeoTreeIndentMarker = { fg = colors.fg4 },
+ -- NeoTreeMessage = { fg = colors.fg3, italic = true },
+ -- NeoTreeModified = { fg = colors.yellow },
+ -- NeoTreeRootName = { fg = colors.fg1, bold = true, italic = true },
+ -- NeoTreeSymbolicLinkTarget = { link = "NeoTreeFileName" },
+ -- NeoTreeExpander = { fg = colors.fg4 },
+ -- NeoTreeWindowsHidden = { link = "NeoTreeDotfile" },
+ -- NeoTreePreview = { link = "Search" },
+ -- NeoTreeGitAdded = { link = "GitGutterAdd" },
+ -- NeoTreeGitConflict = { fg = colors.orange, bold = true, italic = true },
+ -- NeoTreeGitDeleted = { link = "GitGutterDelete" },
+ -- NeoTreeGitIgnored = { link = "NeoTreeDotfile" },
+ -- NeoTreeGitModified = { link = "GitGutterChange" },
+ -- NeoTreeGitRenamed = { link = "NeoTreeGitModified" },
+ -- NeoTreeGitStaged = { link = "NeoTreeGitAdded" },
+ -- NeoTreeGitUntracked = { fg = colors.orange, italic = true },
+ -- NeoTreeGitUnstaged = { link = "NeoTreeGitConflict" },
+ -- NeoTreeTabActive = { fg = colors.fg1, bold = true },
+ -- NeoTreeTabInactive = { fg = colors.fg4, bg = colors.bg1 },
+ -- NeoTreeTabSeparatorActive = { fg = colors.bg1 },
+ -- NeoTreeTabSeparatorInactive = { fg = colors.bg2, bg = colors.bg1 },
}
for group, hl in pairs(config.overrides) do
diff --git a/tests/gruvbox/gruvbox_spec.lua b/tests/gruvbox/gruvbox_spec.lua
index e4db89f..d73d832 100644
--- a/tests/gruvbox/gruvbox_spec.lua
+++ b/tests/gruvbox/gruvbox_spec.lua
@@ -32,7 +32,6 @@ describe("tests", function()
invert_selection = false,
invert_signs = false,
invert_tabline = false,
- invert_intend_guides = false,
contrast = "",
palette_overrides = {},
overrides = {},