Modify theme to match onedarker

This commit is contained in:
Alessandro
2024-09-03 14:49:24 +02:00
parent 72c72fbd10
commit 78b6ce96c4

View File

@@ -1,19 +1,89 @@
-- This file needs to have same structure as nvconfig.lua
-- This file needs to have same structure as nvconfig.lua
-- https://github.com/NvChad/ui/blob/v2.5/lua/nvconfig.lua
---@type ChadrcConfig
local M = {}
M.base46 = {
theme = "onedark",
theme = "onedark",
-- hl_override = {
-- Comment = { italic = true },
-- ["@comment"] = { italic = true },
-- },
---@diagnostic disable-next-line: missing-fields
changed_themes = {
---@diagnostic disable-next-line: missing-fields
onedark = {
base_16 = {
base00 = "#1e222a",
base01 = "#353b45",
base02 = "#3e4451",
base03 = "#545862",
base04 = "#565c64",
base05 = "#abb2bf",
base06 = "#b6bdca",
base07 = "#c8ccd4",
base08 = "#e55561",
base09 = "#cc9057",
base0A = "#e2b86b",
base0B = "#8ebd6b",
base0C = "#48b0bd",
base0D = "#4fa6ed",
base0E = "#bf68d9",
base0F = "#8b3434",
},
---@diagnostic disable-next-line: missing-fields
base_30 = {
bg_blue = "#61afef",
bg_yellow = "#e8c88c",
fg = "#a0a8b7",
purple = "#bf68d9",
green = "#8ebd6b",
orange = "#cc9057",
blue = "#4fa6ed",
yellow = "#e2b86b",
cyan = "#48b0bd",
red = "#e55561",
grey = "#535965",
light_grey = "#7a818e",
dark_cyan = "#266269",
dark_red = "#8b3434",
dark_yellow = "#835d1a",
dark_purple = "#7e3992",
},
},
},
hl_override = {
Comment = { italic = true },
["@comment"] = { italic = true },
-- ["@variable.parameter"] = { fg = "cyan" },
["@variable.member"] = { fg = "cyan" },
["@variable.member.key"] = { fg = "cyan" },
["@property"] = { fg = "cyan" },
["@attribute"] = { fg = "cyan" },
["@function.macro"] = { fg = "cyan", bold = true },
["@constant.macro"] = { fg = "cyan", bold = true },
["@module"] = { fg = "yellow" },
["@constant"] = { fg = "orange" },
["Include"] = { fg = "purple" },
["@string.escape"] = { fg = "red" },
["Special"] = { fg = "red" },
["@punctuation.bracket"] = { fg = "light_grey" },
["@punctuation.delimiter"] = { fg = "light_grey" },
["@tag.delimiter"] = { fg = "light_grey" },
["@function"] = { bold = true },
["@function.builtin"] = { bold = true },
["@function.call"] = { bold = true },
["@keyword"] = { italic = true },
["@keyword.function"] = { bold = true },
["@keyword.rturn"] = { italic = true },
},
}
M.ui = {
statusline = {
theme = "vscode_colored",
@@ -30,10 +100,17 @@ M.ui = {
"███ ▀ ███ ",
"▀██ █████▄▀█▀▄██████▄ ",
" ▀ ▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀ ",
}
}
},
buttons = {
{ "  Projects", "Spc f p", "Telescope projects" },
{ "  Find File", "Spc f f", "Telescope find_files" },
{ " 󰈚 Recent Files", "Spc f o", "Telescope oldfiles" },
{ " 󰈭 Find Word", "Spc f w", "Telescope live_grep" },
{ "  Bookmarks", "Spc m a", "Telescope marks" },
{ "  Themes", "Spc t h", "Telescope themes" },
{ "  Mappings", "Spc c h", "NvCheatsheet" },
},
},
}
return M