-
-
Notifications
You must be signed in to change notification settings - Fork 147
/
Copy pathnvconfig.lua
116 lines (100 loc) · 3.48 KB
/
nvconfig.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
local options = {
base46 = {
theme = "onedark", -- default theme
hl_add = {},
hl_override = {},
integrations = {},
changed_themes = {},
transparency = false,
theme_toggle = { "onedark", "one_light" },
},
ui = {
cmp = {
icons_left = false, -- only for non-atom styles!
style = "default", -- default/flat_light/flat_dark/atom/atom_colored
abbr_maxwidth = 60,
-- for tailwind, css lsp etc
format_colors = { lsp = true, icon = "" },
},
telescope = { style = "borderless" }, -- borderless / bordered
statusline = {
enabled = true,
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",
order = nil,
modules = nil,
},
-- lazyload it when there are 1+ buffers
tabufline = {
enabled = true,
lazyload = true,
order = { "treeOffset", "buffers", "tabs", "btns" },
modules = nil,
bufwidth = 21,
},
},
nvdash = {
load_on_startup = false,
header = {
" ",
" ▄▄ ▄ ▄▄▄▄▄▄▄ ",
" ▄▀███▄ ▄██ █████▀ ",
" ██▄▀███▄ ███ ",
" ███ ▀███▄ ███ ",
" ███ ▀██ ███ ",
" ███ ▀ ███ ",
" ▀██ █████▄▀█▀▄██████▄ ",
" ▀ ▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀ ",
" ",
" Powered By eovim ",
" ",
},
buttons = {
{ txt = " Find File", keys = "ff", cmd = "Telescope find_files" },
{ txt = " Recent Files", keys = "fo", cmd = "Telescope oldfiles" },
{ txt = " Find Word", keys = "fw", cmd = "Telescope live_grep" },
{ txt = " Themes", keys = "th", cmd = ":lua require('nvchad.themes').open()" },
{ txt = " Mappings", keys = "ch", cmd = "NvCheatsheet" },
{ 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 },
},
},
term = {
base46_colors = true,
winopts = { number = false, relativenumber = false },
sizes = { sp = 0.3, vsp = 0.2, ["bo sp"] = 0.3, ["bo vsp"] = 0.2 },
float = {
relative = "editor",
row = 0.3,
col = 0.25,
width = 0.5,
height = 0.4,
border = "single",
},
},
lsp = { signature = true },
cheatsheet = {
theme = "grid", -- simple/grid
excluded_groups = { "terminal (t)", "autopairs", "Nvim", "Opens" }, -- can add group name or with mode
},
mason = { pkgs = {}, skip = {} },
colorify = {
enabled = true,
mode = "virtual", -- fg, bg, virtual
virt_text = " ",
highlight = { hex = true, lspvars = true },
},
}
local status, chadrc = pcall(require, "chadrc")
return vim.tbl_deep_extend("force", options, status and chadrc or {})