pojokcodeid.nvim-lazy/lua/user/tokyonight.lua

74 lines
3 KiB
Lua
Raw Normal View History

2023-01-15 00:17:41 +07:00
local status_ok, tokyonight = pcall(require, "tokyonight")
if not status_ok then
return
end
2023-03-04 12:30:04 +07:00
local transp = false
2024-03-13 19:33:59 +07:00
local sidebar = "normal" --"dark , transparent, normal"
local hilight = "#292e42"
local data_exists, config = pcall(require, "core.config")
2023-03-04 12:30:04 +07:00
if data_exists then
local tras = config.transparent_mode
if tras == 1 then
transp = true
sidebar = "transparent"
2024-02-26 10:30:07 +07:00
-- hilight = "#3E4254"
2024-02-27 14:45:41 +07:00
-- hilight = "#353a56"
hilight = "#292e42"
2023-03-04 12:30:04 +07:00
end
end
2023-01-15 00:17:41 +07:00
tokyonight.setup({
-- your configuration comes here
-- or leave it empty to use the default settings
2023-01-26 11:02:21 +07:00
style = "night", -- The theme comes in three styles, `storm`, `moon`, a darker variant `night` and `day`
2023-01-15 00:17:41 +07:00
light_style = "day", -- The theme is used when the background is set to light
2023-03-04 12:30:04 +07:00
transparent = transp, -- Enable this to disable setting the background color
2023-01-15 00:17:41 +07:00
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 },
2024-03-24 10:12:20 +07:00
keywords = {},
2023-01-15 00:17:41 +07:00
functions = {},
variables = {},
-- Background styles. Can be "dark", "transparent" or "normal"
2023-03-04 12:30:04 +07:00
sidebars = sidebar, -- style for sidebars, see below
floats = sidebar, -- style for floating windows
2023-01-15 00:17:41 +07:00
},
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)
colors.bg_highlight = hilight
2024-02-28 15:02:41 +07:00
colors.bg_statusline = colors.none
end,
2023-01-15 00:17:41 +07:00
--- 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
2023-03-05 00:32:18 +07:00
on_highlights = function(highlights, colors)
highlights.NvimTreeFolderIcon = {
bg = colors.none,
2023-03-05 06:17:57 +07:00
fg = "#e0af68",
2023-03-05 00:32:18 +07:00
}
2024-02-23 19:49:22 +07:00
highlights.Underlined = {
underline = false,
}
2024-03-13 19:33:59 +07:00
highlights.NvimTreeWinSeparator = {
fg = colors.border,
}
highlights.BufferLineFill = { bg = colors.bg }
highlights.NvimTreeSpecialFile = { fg = colors.purple, underline = false }
2024-03-24 10:12:20 +07:00
highlights["@tag.attribute"] = { fg = colors.green1, italic = true }
-- highlights["@keyword.function"] = { fg = colors.blue, italic = true }
-- highlights["@function"] = { fg = colors.blue, italic = true }
2023-03-05 00:32:18 +07:00
end,
2023-01-15 00:17:41 +07:00
})