kickstart.nvim icon indicating copy to clipboard operation
kickstart.nvim copied to clipboard

Deprecation Warning: require('lspconfig') framework deprecated in favor of vim.lsp.config

Open aamernabi opened this issue 1 year ago • 2 comments

I'm getting following deprecation warning when using kickstart configuration:

The `require('lspconfig')` "framework" is deprecated, use vim.lsp.config (see :help lspconfig-nvim-0.11) instead.
Feature will be removed in nvim-lspconfig v3.0.0
stack traceback:
...

Kickstart.nvim relies on the require('lspconfig') API, which will be removed in nvim-lspconfig v3.0.0. To ensure forward compatibility with Neovim 0.11+ and upcoming nvim-lspconfig releases, the Kickstart.nvim should migrate to vim.lsp.config.

aamernabi avatar Nov 24 '25 16:11 aamernabi

I notice the same thing (nvim 0.11.5), here is my workaround

@@ -263,7 +263,8 @@ return {
             -- by the server configuration above. Useful when disabling
             -- certain features of an LSP (for example, turning off formatting for ts_ls)
             server.capabilities = vim.tbl_deep_extend('force', {}, capabilities, server.capabilities or {})
-            require('lspconfig')[server_name].setup(server)
+            vim.lsp.config(server_name, server)
+            vim.lsp.enable(server_name)
           end,
         },
       }

I can create a a pull request for this

Edit: I notice there have already been a pull request on this issue: https://github.com/nvim-lua/kickstart.nvim/pull/1743

James-Leste avatar Dec 15 '25 08:12 James-Leste

This has been fixed in the recent changes. Thanks for the help :)

oriori1703 avatar Feb 28 '26 11:02 oriori1703