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" }, "document-color.nvim": { "branch": "main", "commit": "74c487f0e5accfaae033755451b9e367220693fd" },
"fidget.nvim": { "branch": "main", "commit": "1ba38e4cbb24683973e00c2e36f53ae64da38ef5" }, "fidget.nvim": { "branch": "main", "commit": "1ba38e4cbb24683973e00c2e36f53ae64da38ef5" },
"gitsigns.nvim": { "branch": "main", "commit": "d96ef3bbff0bdbc3916a220f5c74a04c4db033f2" }, "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" }, "guess-indent.nvim": { "branch": "main", "commit": "b8ae749fce17aa4c267eec80a6984130b94f80b2" },
"inc-rename.nvim": { "branch": "main", "commit": "5e03e986625961d1fac296d1bf332a6510c3add6" }, "inc-rename.nvim": { "branch": "main", "commit": "5e03e986625961d1fac296d1bf332a6510c3add6" },
"indent-blankline.nvim": { "branch": "master", "commit": "3d08501caef2329aba5121b753e903904088f7e6" }, "indent-blankline.nvim": { "branch": "master", "commit": "3d08501caef2329aba5121b753e903904088f7e6" },

View File

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