mirror of
https://github.com/stevearc/aerial.nvim
synced 2024-09-08 02:35:44 +02:00
cleanup: remove backwards compatibility shim
This commit is contained in:
parent
3748e87a31
commit
320a883b0b
1 changed files with 0 additions and 16 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue