refactor: removed deprecation warnings from before 1.0.0

This commit is contained in:
Folke Lemaitre
2023-01-25 09:00:19 +01:00
parent 2321847e72
commit 65fb26fe97
4 changed files with 1 additions and 34 deletions

View File

@ -66,13 +66,6 @@ return {
},
---@param opts PluginLspOpts
config = function(plugin, opts)
if plugin.servers then
require("lazyvim.util").deprecate("lspconfig.servers", "lspconfig.opts.servers")
end
if plugin.setup_server then
require("lazyvim.util").deprecate("lspconfig.setup_server", "lspconfig.opts.setup[SERVER]")
end
-- setup autoformat
require("lazyvim.plugins.lsp.format").autoformat = opts.autoformat
-- setup formatting and keymaps
@ -160,9 +153,6 @@ return {
},
---@param opts MasonSettings | {ensure_installed: string[]}
config = function(plugin, opts)
if plugin.ensure_installed then
require("lazyvim.util").deprecate("treesitter.ensure_installed", "treesitter.opts.ensure_installed")
end
require("mason").setup(opts)
local mr = require("mason-registry")
for _, tool in ipairs(opts.ensure_installed) do