nvim/lua/plugins/tokyonight.lua

60 lines
1.4 KiB
Lua
Raw Normal View History

2022-10-09 22:40:29 +02:00
return {
opt = false,
config = function()
-- vim.o.background = "dark"
local tokyonight = require("tokyonight")
tokyonight.setup({
style = "moon",
-- transparent = true,
-- hide_inactive_statusline = false,
sidebars = {
"qf",
"vista_kind",
"terminal",
"packer",
"spectre_panel",
"NeogitStatus",
"help",
"startuptime",
"Outline",
},
on_colors = function(c) end,
on_highlights = function(hl, c)
-- make the current line cursor orange
hl.CursorLineNr = { fg = c.orange, bold = true }
-- borderless telescope
local prompt = "#2d3149"
hl.TelescopeNormal = {
bg = c.bg_dark,
fg = c.fg_dark,
}
hl.TelescopeBorder = {
bg = c.bg_dark,
fg = c.bg_dark,
}
hl.TelescopePromptNormal = {
bg = prompt,
}
hl.TelescopePromptBorder = {
bg = prompt,
fg = prompt,
}
hl.TelescopePromptTitle = {
bg = c.fg_gutter,
fg = c.orange,
}
hl.TelescopePreviewTitle = {
bg = c.bg_dark,
fg = c.bg_dark,
}
hl.TelescopeResultsTitle = {
bg = c.bg_dark,
fg = c.bg_dark,
}
end,
})
tokyonight.load()
end,
}