Finally updated gruvbox to latest version, fixes compatibility with treesitter

This commit is contained in:
Dreaded_X 2024-04-17 06:02:54 +02:00
parent 918be36a06
commit 294ea0a31a
Signed by: Dreaded_X
GPG Key ID: FA5F485356B0D2D4
2 changed files with 15 additions and 17 deletions

View File

@ -9,7 +9,7 @@
"document-color.nvim": { "branch": "main", "commit": "74c487f0e5accfaae033755451b9e367220693fd" },
"fidget.nvim": { "branch": "main", "commit": "1ba38e4cbb24683973e00c2e36f53ae64da38ef5" },
"gitsigns.nvim": { "branch": "main", "commit": "d96ef3bbff0bdbc3916a220f5c74a04c4db033f2" },
"gruvbox.nvim": { "branch": "main", "commit": "487598d979868224aff92cf8818195c1a60e5dfe" },
"gruvbox.nvim": { "branch": "main", "commit": "6e4027ae957cddf7b193adfaec4a8f9e03b4555f" },
"guess-indent.nvim": { "branch": "main", "commit": "b8ae749fce17aa4c267eec80a6984130b94f80b2" },
"inc-rename.nvim": { "branch": "main", "commit": "5e03e986625961d1fac296d1bf332a6510c3add6" },
"indent-blankline.nvim": { "branch": "master", "commit": "3d08501caef2329aba5121b753e903904088f7e6" },

View File

@ -1,11 +1,9 @@
-- https://github.com/ellisonleao/gruvbox.nvim
return {
"ellisonleao/gruvbox.nvim",
commit = "487598d979868224aff92cf8818195c1a60e5dfe", -- Commit before things start breaking
priority = 1000,
config = function()
local config = require("gruvbox").config
local colors = require("gruvbox.palette").get_base_colors(vim.o.background, config.contrast)
local palette = require("gruvbox").palette
require("gruvbox").setup({
background = "dark",
@ -13,27 +11,27 @@ return {
strings = false,
},
overrides = {
YankHighlight = { fg = colors.blue, bg = colors.bg0, reverse = config.inverse },
Search = { fg = colors.aqua },
YankHighlight = { fg = palette.bright_blue, bg = palette.dark0, reverse = true },
Search = { fg = palette.bright_aqua },
IncSearch = { link = "Search" },
NormalFloat = { bg = colors.bg0 },
FloatBorder = { fg = colors.bg4 },
TelescopePromptTitle = { fg = colors.fg4 },
NormalFloat = { bg = palette.dark0 },
FloatBorder = { fg = palette.dark4 },
TelescopePromptTitle = { fg = palette.light4 },
TelescopePromptBorder = { link = "FloatBorder" },
TelescopePromptPrefix = { fg = colors.red },
TelescopePromptPrefix = { fg = palette.bright_red },
TelescopePreviewTitle = { link = "TelescopePreviewTitle" },
TelescopePreviewBorder = { link = "FloatBorder" },
TelescopeResultsTitle = { link = "TelescopePreviewTitle" },
TelescopeResultsBorder = { link = "FloatBorder" },
TelescopeMatching = { fg = colors.aqua, bold = true },
TelescopeSelection = { fg = colors.blue },
TelescopeMatching = { fg = palette.bright_aqua, bold = true },
TelescopeSelection = { fg = palette.bright_blue },
TelescopeSelectionCaret = { link = "TelescopeSelection" },
CmpItemAbbrMatch = { fg = colors.aqua, bold = true },
CmpItemAbbrMatch = { fg = palette.bright_aqua, bold = true },
CmpItemAbbrMatchFuzzy = { link = "CmpItemAbbrMatch" },
CmpItemMenu = { fg = colors.bg2 },
CmpItemKindFunction = { fg = colors.red },
CmpSelection = { fg = colors.bg0, bg = colors.blue },
LspReferenceText = { fg = colors.bg0, bg = colors.neutral_purple },
CmpItemMenu = { fg = palette.dark2 },
CmpItemKindFunction = { fg = palette.bright_red },
CmpSelection = { fg = palette.dark0, bg = palette.bright_blue },
LspReferenceText = { fg = palette.dark0, bg = palette.neutral_purple },
LspReferenceRead = { link = "LspReferenceText" },
LspReferenceWrite = { link = "LspReferenceText" },
},