@@ -109,47 +109,6 @@ M.options = {}
109
109
--- @param options Config | nil
110
110
function M .setup (options )
111
111
options = options or {}
112
-
113
- -- Handle deprecated options TODO: Remove post v5.0.0 release
114
- --- @diagnostic disable : undefined-field
115
- if options .borderless_telescope ~= nil then
116
- vim .defer_fn (function ()
117
- vim .notify (
118
- " The 'borderless_telescope' is deprecated!\n\n Use 'borderless_pickers' instead." ,
119
- 3 ,
120
- { title = " cyberdream.nvim" }
121
- )
122
- end , 1000 )
123
- options .borderless_pickers = options .borderless_telescope
124
- end
125
-
126
- if options .theme then
127
- vim .defer_fn (function ()
128
- vim .notify (
129
- " The 'theme' table is deprecated!\n\n Move any 'theme' options to the main 'opts' table instead." ,
130
- 3 ,
131
- { title = " cyberdream.nvim" }
132
- )
133
- end , 1000 )
134
-
135
- if options .theme .variant then
136
- options .variant = options .theme .variant
137
- end
138
- if options .theme .saturation then
139
- options .saturation = options .theme .saturation
140
- end
141
- if options .theme .colors then
142
- options .colors = options .theme .colors
143
- end
144
- if options .theme .highlights then
145
- options .highlights = options .theme .highlights
146
- end
147
- if options .theme .overrides then
148
- options .overrides = options .theme .overrides
149
- end
150
- end
151
- --- @diagnostic enable : undefined-field
152
-
153
112
M .options = vim .tbl_deep_extend (" force" , {}, default_options , options )
154
113
vim .g .cyberdream_opts = M .options
155
114
end
0 commit comments