diff options
Diffstat (limited to 'lua/lspconfig.lua')
| -rw-r--r-- | lua/lspconfig.lua | 12 |
1 files changed, 11 insertions, 1 deletions
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 |
