Skip to content

Commit

Permalink
cleanup: remove old deprecation messages
Browse files Browse the repository at this point in the history
  • Loading branch information
stevearc committed Jul 29, 2023
1 parent 3961185 commit 5131545
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions lua/dressing/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -170,38 +170,6 @@ local M = vim.deepcopy(default_config)
M.update = function(opts)
local newconf = vim.tbl_deep_extend("force", default_config, opts or {})

if
newconf.input.row
or newconf.input.col
or newconf.select.builtin.row
or newconf.select.builtin.col
then
vim.notify(
"Deprecated: Dressing row and col are no longer used. Use the override to customize layout (:help dressing)",
vim.log.levels.WARN
)
end

if
newconf.select.telescope
and newconf.select.telescope.theme
and vim.tbl_count(newconf.select.telescope) == 1
then
vim.notify(
"Deprecated: dressing.select.telescope.theme is deprecated. Pass in telescope options directly (:help dressing)",
vim.log.levels.WARN
)
local theme = newconf.select.telescope.theme
local ttype = type(theme)
if ttype == "string" then
newconf.select.telescope = require("telescope.themes")[string.format("get_%s", theme)]()
elseif ttype == "function" then
newconf.select.telescope = theme({})
else
newconf.select.telescope = theme
end
end

for k, v in pairs(newconf) do
M[k] = v
end
Expand Down

0 comments on commit 5131545

Please sign in to comment.