From 1f7fbc34e6420476142b5cc85e9bee52717540fb Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Wed, 17 Sep 2025 23:30:24 -0400 Subject: refactor!: deprecate old framework/configs, Nvim 0.10 #4077 --- lua/lspconfig.lua | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'lua/lspconfig.lua') diff --git a/lua/lspconfig.lua b/lua/lspconfig.lua index ecd30df4..79df2beb 100644 --- a/lua/lspconfig.lua +++ b/lua/lspconfig.lua @@ -77,9 +77,19 @@ end local mt = {} function mt:__index(k) if configs[k] == nil then + if vim.fn.has('nvim-0.11') == 1 then + vim.deprecate( + 'The `require(\'lspconfig\')` "framework"', + 'vim.lsp.config (see :help lspconfig-nvim-0.11)', + 'v3.0.0', + 'nvim-lspconfig', + false + ) + end + local alias = M.server_aliases(k) if alias then - vim.deprecate(k, alias.to, alias.version, 'lspconfig', false) + vim.deprecate(k, alias.to, alias.version, 'nvim-lspconfig', false) alias.inconfig = true k = alias.to end -- cgit v1.2.3-70-g09d2