refactor(onedark): use onendark.colors module for colors
This commit is contained in:
+12
-12
@@ -3,18 +3,18 @@ return {
|
|||||||
"navarasu/onedark.nvim",
|
"navarasu/onedark.nvim",
|
||||||
priority = 1000,
|
priority = 1000,
|
||||||
config = function()
|
config = function()
|
||||||
local c = require("onedark.palette").darker
|
require("onedark").setup({ style = "darker" })
|
||||||
local opts = {
|
|
||||||
style = "darker",
|
local c = require("onedark.colors")
|
||||||
highlights = {
|
local highlights = {
|
||||||
NormalFloat = { bg = c.bg0 },
|
NormalFloat = { bg = c.bg0 },
|
||||||
FloatBorder = { bg = c.bg0 },
|
FloatBorder = { bg = c.bg0 },
|
||||||
TabLineSel = { fg = c.fg, bg = c.bg0 },
|
TabLineSel = { fg = c.fg, bg = c.bg0 },
|
||||||
EndOfBuffer = nil,
|
EndOfBuffer = nil,
|
||||||
NvimTreeIndentMarker = { fg = c.bg3 },
|
NvimTreeIndentMarker = { fg = c.bg3 },
|
||||||
},
|
|
||||||
}
|
}
|
||||||
require("onedark").setup(opts)
|
require("onedark").set_options("highlights", highlights)
|
||||||
require("onedark").load()
|
|
||||||
|
require("onedark").colorscheme()
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user