Reworked config using chezmoi
This commit is contained in:
142
dot_config/nvim/lua/chadrc.lua
Normal file
142
dot_config/nvim/lua/chadrc.lua
Normal file
@@ -0,0 +1,142 @@
|
||||
-- This file needs to have same structure as nvconfig.lua
|
||||
-- https://github.com/NvChad/ui/blob/v3.0/lua/nvconfig.lua
|
||||
|
||||
---@type ChadrcConfig
|
||||
local M = {}
|
||||
|
||||
M.base46 = {
|
||||
theme = "onedark",
|
||||
|
||||
---@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" },
|
||||
["@keyword.exception"] = { fg = "purple" },
|
||||
|
||||
["@string.escape"] = { fg = "red" },
|
||||
["Special"] = { fg = "red" },
|
||||
|
||||
["@punctuation.bracket"] = { fg = "light_grey" },
|
||||
["@punctuation.delimiter"] = { fg = "light_grey" },
|
||||
["@tag.delimiter"] = { fg = "light_grey" },
|
||||
["Delimiter"] = { fg = "light_grey" },
|
||||
|
||||
["Function"] = { bold = true },
|
||||
["@function"] = { bold = true },
|
||||
["@function.builtin"] = { bold = true },
|
||||
["@function.call"] = { bold = true },
|
||||
["@function.method"] = { bold = true },
|
||||
["@function.method.call"] = { bold = true },
|
||||
|
||||
["@keyword"] = { italic = true },
|
||||
["@keyword.function"] = { bold = true },
|
||||
["@keyword.return"] = { italic = true },
|
||||
},
|
||||
}
|
||||
|
||||
M.ui = {
|
||||
statusline = {
|
||||
theme = "vscode_colored",
|
||||
},
|
||||
|
||||
cmp = {
|
||||
style = "atom_colored"
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
M.nvdash = {
|
||||
load_on_startup = true,
|
||||
buttons = {
|
||||
{ txt = " Projects", keys = "Spc f p", cmd = "Telescope projects" },
|
||||
{ txt = " Find File", keys = "Spc f f", cmd = "Telescope find_files" },
|
||||
{ txt = " Recent Files", keys = "Spc f o", cmd = "Telescope oldfiles" },
|
||||
{ txt = " Find Word", keys = "Spc f w", cmd = "Telescope live_grep" },
|
||||
{ txt = " Bookmarks", keys = "Spc m a", cmd = "Telescope marks" },
|
||||
{ txt = "─", hl = "NvDashFooter", no_gap = true, rep = true },
|
||||
|
||||
{
|
||||
txt = function()
|
||||
local stats = require("lazy").stats()
|
||||
local ms = math.floor(stats.startuptime) .. " ms"
|
||||
return " Loaded " .. stats.loaded .. "/" .. stats.count .. " plugins in " .. ms
|
||||
end,
|
||||
hl = "NvDashFooter",
|
||||
no_gap = true,
|
||||
},
|
||||
|
||||
{ txt = "─", hl = "NvDashFooter", no_gap = true, rep = true },
|
||||
},
|
||||
|
||||
}
|
||||
|
||||
M.term = {
|
||||
-- hl = "Normal:term,WinSeparator:WinSeparator",
|
||||
-- sizes = { sp = 0.3, vsp = 0.2 },
|
||||
float = {
|
||||
relative = "editor",
|
||||
row = 0.04,
|
||||
col = 0.045,
|
||||
width = 0.9,
|
||||
height = 0.8,
|
||||
border = "single",
|
||||
},
|
||||
}
|
||||
|
||||
return M
|
||||
Reference in New Issue
Block a user