2024-01-19 22:34:37 +01:00
|
|
|
---@type ChadrcConfig
|
|
|
|
local M = {}
|
|
|
|
|
|
|
|
-- Path to overriding theme and highlights files
|
|
|
|
local highlights = require "custom.highlights"
|
|
|
|
|
|
|
|
M.ui = {
|
2024-02-21 22:05:24 +01:00
|
|
|
theme = "oceanic-next",
|
2024-03-07 14:31:20 +01:00
|
|
|
theme_toggle = { "oceanic-next", "ayu_light" },
|
2024-01-19 22:34:37 +01:00
|
|
|
|
2024-03-22 10:48:37 +01:00
|
|
|
cmp = {
|
|
|
|
icons = true,
|
|
|
|
lspkind_text = true,
|
|
|
|
style = "atom", -- default/flat_light/flat_dark/atom/atom_colored
|
|
|
|
},
|
|
|
|
|
2024-01-19 22:34:37 +01:00
|
|
|
hl_override = highlights.override,
|
|
|
|
hl_add = highlights.add,
|
2024-01-20 18:36:48 +01:00
|
|
|
lsp_semantic_tokens = true,
|
|
|
|
statusline = {
|
|
|
|
theme = "default", -- default/vscode/vscode_colored/minimal
|
|
|
|
-- default/round/block/arrow separators work only for default statusline theme
|
|
|
|
-- round and block will work for minimal theme only
|
|
|
|
separator_style = "default",
|
|
|
|
},
|
|
|
|
-- lazyload it when there are 1+ buffers
|
|
|
|
tabufline = {
|
|
|
|
show_numbers = true,
|
|
|
|
enabled = true,
|
|
|
|
lazyload = true,
|
|
|
|
overriden_modules = nil,
|
|
|
|
},
|
|
|
|
-- nvdash (dashboard)
|
|
|
|
nvdash = {
|
|
|
|
load_on_startup = true,
|
|
|
|
header = {
|
2024-01-20 20:04:02 +01:00
|
|
|
" ",
|
|
|
|
" █ ████████ █████ ███████ ████ ",
|
|
|
|
" ███ ██████ █████ █████████ ██████ ",
|
|
|
|
" █████ ██████████████████████ ████ ███████████████ ",
|
|
|
|
" ██ ██ █████ █████████████ ████ ████████████████ ",
|
|
|
|
" ████ ███████████████ █████████ ████ █████ ██████ ████ ",
|
|
|
|
" ██████ ██████ ███ █████████ ████ █████ █████ ████ ",
|
|
|
|
" ████████ ███████████████████ ████ ████ █████ ████ ████ ",
|
|
|
|
" ",
|
|
|
|
" 🛠️ Sharp tools make good work 🖥️ ",
|
2024-01-20 18:36:48 +01:00
|
|
|
},
|
|
|
|
},
|
2024-01-19 22:34:37 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
M.plugins = "custom.plugins"
|
|
|
|
|
|
|
|
-- check core.mappings for table structure
|
|
|
|
M.mappings = require "custom.mappings"
|
|
|
|
|
2024-01-20 19:06:50 +01:00
|
|
|
local get_info = function()
|
|
|
|
local buf = {
|
|
|
|
{ " Find File", ";ff", "Telescope find_files" },
|
|
|
|
{ " Recent Files", ";fo", "Telescope oldfiles" },
|
|
|
|
{ " Find Word", ";fw", "Telescope live_grep" },
|
|
|
|
{ " Bookmarks", ";fm", "Telescope marks" },
|
|
|
|
{ " Theme: " .. M.ui.theme, ";th", "Telescope themes" },
|
|
|
|
{
|
2024-01-20 20:04:02 +01:00
|
|
|
" Toggle Theme",
|
2024-01-20 19:06:50 +01:00
|
|
|
"<space>th",
|
|
|
|
function()
|
|
|
|
require("base46").toggle_theme()
|
|
|
|
end,
|
|
|
|
},
|
|
|
|
{ " Mappings", "<space>ch", "NvCheatsheet" },
|
|
|
|
{ " Git", "<space>gg", "LazyGit" },
|
2024-03-01 16:18:19 +01:00
|
|
|
{ " Files", "<F5>", "NvimTreeToggle" },
|
|
|
|
{ " Change Directory", ";cd", "Telescope zoxide list" },
|
2024-01-20 19:06:50 +01:00
|
|
|
{ " Terminal", "<A-i>", "ToggleTerm direction=float" },
|
|
|
|
}
|
|
|
|
return buf
|
|
|
|
end
|
|
|
|
M.ui.nvdash.buttons = get_info()
|
2024-01-19 22:34:37 +01:00
|
|
|
return M
|