kickstart.nvim
kickstart.nvim copied to clipboard
Deprecation Warning: require('lspconfig') framework deprecated in favor of vim.lsp.config
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.
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
This has been fixed in the recent changes. Thanks for the help :)