pojokcodeid.nvim-lazy/lua/custom/plugins/tokyonight.lua

67 lines
2.7 KiB
Lua
Raw Normal View History

return {
{
"folke/tokyonight.nvim",
lazy = false,
priority = 1000,
opts = {},
config = function()
local status_ok, tokyonight = pcall(require, "tokyonight")
if not status_ok then
return
end
local transp = true
2024-03-06 23:27:30 +07:00
local sidebar = "transparent" --"dark , transparent, normal"
tokyonight.setup({
-- your configuration comes here
-- or leave it empty to use the default settings
style = "night", -- The theme comes in three styles, `storm`, `moon`, a darker variant `night` and `day`
light_style = "day", -- The theme is used when the background is set to light
transparent = transp, -- Enable this to disable setting the background color
terminal_colors = true, -- Configure the colors used when opening a `:terminal` in Neovim
styles = {
-- Style to be applied to different syntax groups
-- Value is any valid attr-list value for `:help nvim_set_hl`
-- comments = { italic = true },
comments = { italic = true },
keywords = { italic = true },
functions = {},
variables = {},
-- Background styles. Can be "dark", "transparent" or "normal"
sidebars = sidebar, -- style for sidebars, see below
floats = sidebar, -- style for floating windows
},
sidebars = { "qf", "help" }, -- Set a darker background on sidebar-like windows. For example: `["qf", "vista_kind", "terminal", "packer"]`
day_brightness = 0.2, -- Adjusts the brightness of the colors of the **Day** style. Number between 0 and 1, from dull to vibrant colors
hide_inactive_statusline = false, -- Enabling this option, will hide inactive statuslines and replace them with a thin border instead. Should work with the standard **StatusLine** and **LuaLine**.
dim_inactive = false, -- dims inactive windows
lualine_bold = false, -- When `true`, section headers in the lualine theme will be bold
--- You can override specific color groups to use other groups or a hex color
--- function will be called with a ColorScheme table
-- @param colors ColorScheme
on_colors = function(colors)
2024-03-06 23:27:30 +07:00
colors.bg_statusline = colors.none
2024-03-04 22:26:34 +07:00
colors.bg_sidebar = colors.none
2024-03-06 23:27:30 +07:00
colors.bg = colors.none
colors.bg_dark = colors.none
colors.terminal_black = colors.none
end,
--- You can override specific highlights to use other groups or a hex color
--- function will be called with a Highlights and ColorScheme table
--@param highlights Highlights
-- @param colors ColorScheme
on_highlights = function(highlights, colors)
highlights.NvimTreeFolderIcon = {
bg = colors.none,
fg = "#e0af68",
}
highlights.Underlined = {
underline = false,
}
end,
})
end,
},
}