refactor(onedark): use onendark.colors module for colors
This commit is contained in:
+12
-12
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user