-
-
Notifications
You must be signed in to change notification settings - Fork 30
/
config.lua
125 lines (112 loc) · 3.12 KB
/
config.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
117
118
119
120
121
122
123
124
125
local M = {}
---@class CyberdreamHighlight
---@field fg? string
---@field bg? string
---@field sp? string
---@field bold? boolean
---@field italic? boolean
---@field underline? boolean
---@field strikethrough? boolean
---@alias Colors table<CyberdreamColorDefault|CyberdreamColorLight|string, string>
---@alias CyberdreamPalette CyberdreamColorLight|CyberdreamColorDefault|Colors
---@alias CyberdreamOverrideFn fun(palette: CyberdreamPalette): CyberdreamHighlight
---@class ThemeConfig
---@field variant? "default" | "light" | "auto"
---@field saturation? number
---@field colors? CyberdreamPalette
---@field highlights? table<string, CyberdreamHighlight>
---@field overrides? CyberdreamOverrideFn
---@field cache? boolean
---@alias CyberdreamTelescopeStyle "nvchad" | "flat"
---@class extensions
---@field alpha? boolean
---@field blinkcmp? boolean
---@field cmp? boolean
---@field dashboard? boolean
---@field fzflua? boolean
---@field gitpad? boolean
---@field gitsigns? boolean
---@field grapple? boolean
---@field grugfar? boolean
---@field heirline? boolean
---@field helpview? boolean
---@field hop? boolean
---@field indentblankline? boolean
---@field kubectl? boolean
---@field lazy? boolean
---@field leap? boolean
---@field markdown? boolean
---@field markview? boolean
---@field mini? boolean
---@field neogit? boolean
---@field noice? boolean
---@field notify? boolean
---@field rainbow_delimiters? boolean
---@field snacks? boolean
---@field telescope? boolean
---@field treesitter? boolean
---@field treesittercontext? boolean
---@field trouble? boolean
---@field whichkey? boolean
---@class Config
---@field transparent? boolean
---@field italic_comments? boolean
---@field hide_fillchars? boolean
---@field borderless_telescope? boolean | { border: boolean, style: CyberdreamTelescopeStyle }
---@field terminal_colors? boolean
---@field theme? ThemeConfig
---@field extensions? extensions
local default_options = {
transparent = false,
italic_comments = false,
hide_fillchars = false,
borderless_telescope = true,
terminal_colors = true,
cache = false,
theme = {
variant = "default",
saturation = 1,
colors = {},
highlights = {},
},
extensions = {
alpha = true,
blinkcmp = true,
cmp = true,
dashboard = true,
fzflua = true,
gitpad = true,
gitsigns = true,
grapple = true,
grugfar = true,
heirline = true,
helpview = true,
hop = true,
indentblankline = true,
kubectl = true,
lazy = true,
leap = true,
markdown = true,
markview = true,
mini = true,
noice = true,
neogit = true,
notify = true,
rainbow_delimiters = true,
snacks = true,
telescope = true,
treesitter = true,
treesittercontext = true,
trouble = true,
whichkey = true,
},
}
---@type Config
M.options = {}
---@param options Config|nil
function M.setup(options)
M.options = vim.tbl_deep_extend("force", {}, default_options, options or {})
vim.g.cyberdream_opts = M.options
end
M.setup()
return M