refactor(onedark): use onendark.colors module for colors

This commit is contained in:
2025-05-02 23:34:38 +02:00
parent 3c4a96442a
commit b95296b969
+12 -12
View File
@@ -3,18 +3,18 @@ return {
"navarasu/onedark.nvim",
priority = 1000,
config = function()
local c = require("onedark.palette").darker
local opts = {
style = "darker",
highlights = {
NormalFloat = { bg = c.bg0 },
FloatBorder = { bg = c.bg0 },
TabLineSel = { fg = c.fg, bg = c.bg0 },
EndOfBuffer = nil,
NvimTreeIndentMarker = { fg = c.bg3 },
},
require("onedark").setup({ style = "darker" })
local c = require("onedark.colors")
local highlights = {
NormalFloat = { bg = c.bg0 },
FloatBorder = { bg = c.bg0 },
TabLineSel = { fg = c.fg, bg = c.bg0 },
EndOfBuffer = nil,
NvimTreeIndentMarker = { fg = c.bg3 },
}
require("onedark").setup(opts)
require("onedark").load()
require("onedark").set_options("highlights", highlights)
require("onedark").colorscheme()
end,
}