cc3289639b
* performance: avoid reloading config (#2360) * performance: avoid reloading config * Rm outdated info in readme --------- Co-authored-by: Sidhanth Rathod <siduck@tutanota.com> * update nvchad load_config result path * Update utils.lua * update branch names * Fix unreachable mappings for the lsp (#2443) * add option for base46 integrations * rm nvchad_theme global * use correct conf path in lspconfig --------- Co-authored-by: georgejean <jeangeorge385@yahoo.fr> Co-authored-by: KorigamiK <72932688+KorigamiK@users.noreply.github.com>
113 lines
3.1 KiB
Lua
113 lines
3.1 KiB
Lua
local M = {}
|
|
|
|
M.options = {
|
|
nvchad_branch = "v3.0",
|
|
}
|
|
|
|
M.ui = {
|
|
------------------------------- base46 -------------------------------------
|
|
-- hl = highlights
|
|
hl_add = {},
|
|
hl_override = {},
|
|
changed_themes = {},
|
|
theme_toggle = { "onedark", "one_light" },
|
|
theme = "onedark", -- default theme
|
|
transparency = false,
|
|
|
|
-- cmp themeing
|
|
cmp = {
|
|
icons = true,
|
|
lspkind_text = true,
|
|
style = "default", -- default/flat_light/flat_dark/atom/atom_colored
|
|
border_color = "grey_fg", -- only applicable for "default" style, use color names from base30 variables
|
|
selected_item_bg = "colored", -- colored / simple
|
|
},
|
|
|
|
telescope = { style = "borderless" }, -- borderless / bordered
|
|
|
|
------------------------------- nvchad_ui modules -----------------------------
|
|
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 = false,
|
|
enabled = true,
|
|
lazyload = true,
|
|
overriden_modules = nil,
|
|
},
|
|
|
|
-- nvdash (dashboard)
|
|
nvdash = {
|
|
load_on_startup = false,
|
|
|
|
header = {
|
|
" ▄ ▄ ",
|
|
" ▄ ▄▄▄ ▄ ▄▄▄ ▄ ▄ ",
|
|
" █ ▄ █▄█ ▄▄▄ █ █▄█ █ █ ",
|
|
" ▄▄ █▄█▄▄▄█ █▄█▄█▄▄█▄▄█ █ ",
|
|
" ▄ █▄▄█ ▄ ▄▄ ▄█ ▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ",
|
|
" █▄▄▄▄ ▄▄▄ █ ▄ ▄▄▄ ▄ ▄▄▄ ▄ ▄ █ ▄",
|
|
"▄ █ █▄█ █▄█ █ █ █▄█ █ █▄█ ▄▄▄ █ █",
|
|
"█▄█ ▄ █▄▄█▄▄█ █ ▄▄█ █ ▄ █ █▄█▄█ █",
|
|
" █▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█ █▄█▄▄▄█ ",
|
|
},
|
|
|
|
buttons = {
|
|
{ " 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" },
|
|
},
|
|
},
|
|
|
|
cheatsheet = { theme = "grid" }, -- simple/grid
|
|
|
|
lsp = {
|
|
signature = true,
|
|
semantic_tokens = false,
|
|
},
|
|
|
|
term = {
|
|
sizes = { sp = 0.3, vsp = 0.2 },
|
|
behavior = {
|
|
auto_insert = true,
|
|
},
|
|
},
|
|
}
|
|
|
|
M.plugins = "" -- path i.e "custom.plugins", so make custom/plugins.lua file
|
|
|
|
M.lazy_nvim = require "plugins.configs.lazy_nvim" -- config for lazy.nvim startup options
|
|
|
|
M.mappings = require "core.mappings"
|
|
|
|
M.base46 = {
|
|
integrations = {
|
|
"blankline",
|
|
"cmp",
|
|
"defaults",
|
|
"devicons",
|
|
"git",
|
|
"lsp",
|
|
"mason",
|
|
"nvchad_updater",
|
|
"nvcheatsheet",
|
|
"nvdash",
|
|
"nvimtree",
|
|
"statusline",
|
|
"syntax",
|
|
"tbline",
|
|
"telescope",
|
|
"whichkey",
|
|
},
|
|
}
|
|
|
|
return M
|