Use opts properly for gruvbox

This commit is contained in:
Dreaded_X 2025-06-02 02:31:16 +02:00
parent b696b9addd
commit c8d442912f
Signed by: Dreaded_X
GPG Key ID: 5A0CBFE3C3377FAA

View File

@ -4,10 +4,16 @@
return {
"ellisonleao/gruvbox.nvim",
priority = 1000,
config = function()
config = function(_, opts)
require("gruvbox").setup(opts)
-- Load the colorscheme
vim.cmd.colorscheme("gruvbox")
end,
opts = function()
local palette = require("gruvbox").palette
require("gruvbox").setup({
return {
background = "dark",
italic = {
strings = false,
@ -77,9 +83,6 @@ return {
DiagnosticNumInfo = { fg = palette.dark0, bg = palette.bright_blue, bold = true },
SnacksIndentScope = { fg = palette.light4 },
},
})
-- Load the colorscheme
vim.cmd.colorscheme("gruvbox")
}
end,
}