cleanup: remove backwards compatibility shim

This commit is contained in:
Steven Arcangeli 2024-03-01 13:45:14 -08:00
parent 3748e87a31
commit 320a883b0b

View file

@ -509,22 +509,6 @@ M.setup = function(opts)
newconf.use_lspkind = true
end
-- for backwards compatibility
for k, _ in pairs(default_options.lsp) do
if newconf[k] ~= nil then
vim.notify_once(
string.format(
"aerial.config.%s should be moved to aerial.config.lsp.%s (see :help aerial-options)\nThis shim will be removed on 2024-02-11",
k,
k
),
vim.log.levels.WARN
)
---@diagnostic disable-next-line assign-type-mismatch
newconf.lsp[k] = newconf[k]
newconf[k] = nil
end
end
newconf.default_icons = newconf.nerd_font and nerd_icons or plain_icons
if type(newconf.open_automatic) == "boolean" then