neovim-confs/lua/custom/chadrc.lua

74 lines
3.3 KiB
Lua
Raw Normal View History

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-05 12:35:30 +01:00
theme = "chadracula",
2024-01-20 18:36:48 +01:00
theme_toggle = { "kanagawa", "chadracula" },
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",
overriden_modules = nil,
},
-- 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" },
{ " Files", "<F5>", "NvimTreeToggle" },
{ " 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