Skip to content

Commit

Permalink
feat(config): remove v5.0.0 deprecation warnings and opts translations
Browse files Browse the repository at this point in the history
  • Loading branch information
scottmckendry committed Feb 18, 2025
1 parent 6e337f1 commit dd3af96
Showing 1 changed file with 0 additions and 41 deletions.
41 changes: 0 additions & 41 deletions lua/cyberdream/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -109,47 +109,6 @@ M.options = {}
---@param options Config|nil
function M.setup(options)
options = options or {}

-- Handle deprecated options TODO: Remove post v5.0.0 release
---@diagnostic disable: undefined-field
if options.borderless_telescope ~= nil then
vim.defer_fn(function()
vim.notify(
"The 'borderless_telescope' is deprecated!\n\nUse 'borderless_pickers' instead.",
3,
{ title = "cyberdream.nvim" }
)
end, 1000)
options.borderless_pickers = options.borderless_telescope
end

if options.theme then
vim.defer_fn(function()
vim.notify(
"The 'theme' table is deprecated!\n\nMove any 'theme' options to the main 'opts' table instead.",
3,
{ title = "cyberdream.nvim" }
)
end, 1000)

if options.theme.variant then
options.variant = options.theme.variant
end
if options.theme.saturation then
options.saturation = options.theme.saturation
end
if options.theme.colors then
options.colors = options.theme.colors
end
if options.theme.highlights then
options.highlights = options.theme.highlights
end
if options.theme.overrides then
options.overrides = options.theme.overrides
end
end
---@diagnostic enable: undefined-field

M.options = vim.tbl_deep_extend("force", {}, default_options, options)
vim.g.cyberdream_opts = M.options
end
Expand Down

0 comments on commit dd3af96

Please sign in to comment.