Skip to content

Conversation

fsgreco
Copy link
Owner

@fsgreco fsgreco commented Sep 27, 2025

Remove deprecated method require('lspconfig')[server_name].setup(server_config).
Using new method:

vim.lsp.config(server_name, server_config)
vim.lsp.enable(server_name)

More information here: nvim-lua#1663

@fsgreco fsgreco merged commit 32c40a2 into modular-configuration Sep 27, 2025
@fsgreco fsgreco deleted the fsgreco-patch-nvim+011 branch September 27, 2025 13:45
for server_name, server_config in pairs(servers) do
require('lspconfig')[server_name].setup(server_config)
vim.lsp.config(server_name, server_config)
vim.lsp.enable(server_name)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately vim.lsp.enable here brings up every configured LSP, whether it's necessary or not. I don't think it should be called like that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants