nvim/lua/plugins/colorscheme.lua

44 lines
993 B
Lua
Raw Normal View History

2024-02-21 04:09:18 +00:00
return {
"folke/tokyonight.nvim",
lazy = false,
priority = 1000,
2024-02-27 06:34:15 +00:00
opts = {
-- Borderless telescope
-- see: https://github.com/folke/tokyonight.nvim?tab=readme-ov-file#borderless-telescope-example
on_highlights = function(hl, c)
-- local prompt = "#2d3149"
local prompt = c.bg_highlight
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 = prompt,
fg = prompt,
}
hl.TelescopePreviewTitle = {
bg = c.bg_dark,
fg = c.bg_dark,
}
hl.TelescopeResultsTitle = {
bg = c.bg_dark,
fg = c.bg_dark,
}
end,
},
2024-02-21 04:09:18 +00:00
init = function()
vim.cmd([[ colorscheme tokyonight-night ]])
end,
}