dots/home/private_dot_config/nvim/lua/custom/chadrc.lua
2024-12-14 14:46:38 +08:00

39 lines
1.1 KiB
Lua

---@type ChadrcConfig
local M = {}
-- Path to overriding theme and highlights files
local highlights = require "custom.highlights"
local is_darkmode = vim.system({"darkman","get"}, { text = true }, on_exit)
if is_darkmode == "dark" then
local c_theme = "nord"
else
local c_theme = "onenord_light"
end
M.ui = {
theme = c_theme,
theme_toggle = { "nord", "onenord_light" },
hl_override = highlights.override,
hl_add = highlights.add,
nvdash = {
load_on_startup = true,
-- generated with https://patorjk.com/software/taag/#
header = {
"▗▖ ▗▖▗▄▄▄▖ ▗▄▖ ▗▖ ▗▖▗▄▄▄▖▗▖ ▗▖",
"▐▛▚▖▐▌▐▌ ▐▌ ▐▌▐▌ ▐▌ █ ▐▛▚▞▜▌",
"▐▌ ▝▜▌▐▛▀▀▘▐▌ ▐▌▐▌ ▐▌ █ ▐▌ ▐▌",
"▐▌ ▐▌▐▙▄▄▖▝▚▄▞▘ ▝▚▞▘ ▗▄█▄▖▐▌ ▐▌",
" ",
}
}
}
M.plugins = "custom.plugins"
-- check core.mappings for table structure
M.mappings = require "custom.mappings"
return M