Use opts properly for gruvbox
This commit is contained in:
parent
b696b9addd
commit
c8d442912f
|
@ -4,10 +4,16 @@
|
||||||
return {
|
return {
|
||||||
"ellisonleao/gruvbox.nvim",
|
"ellisonleao/gruvbox.nvim",
|
||||||
priority = 1000,
|
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
|
local palette = require("gruvbox").palette
|
||||||
|
|
||||||
require("gruvbox").setup({
|
return {
|
||||||
background = "dark",
|
background = "dark",
|
||||||
italic = {
|
italic = {
|
||||||
strings = false,
|
strings = false,
|
||||||
|
@ -77,9 +83,6 @@ return {
|
||||||
DiagnosticNumInfo = { fg = palette.dark0, bg = palette.bright_blue, bold = true },
|
DiagnosticNumInfo = { fg = palette.dark0, bg = palette.bright_blue, bold = true },
|
||||||
SnacksIndentScope = { fg = palette.light4 },
|
SnacksIndentScope = { fg = palette.light4 },
|
||||||
},
|
},
|
||||||
})
|
}
|
||||||
|
|
||||||
-- Load the colorscheme
|
|
||||||
vim.cmd.colorscheme("gruvbox")
|
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user