Don't extend lsp capabilities because blink does it internally

This commit is contained in:
Ori Perry 2026-02-27 23:27:25 +02:00
parent 4021496050
commit 1f4c21f463

View File

@ -598,12 +598,6 @@ require('lazy').setup({
end,
})
-- LSP servers and clients are able to communicate to each other what features they support.
-- By default, Neovim doesn't support everything that is in the LSP specification.
-- When you add blink.cmp, luasnip, etc. Neovim now has *more* capabilities.
-- So, we create new capabilities with blink.cmp, and then broadcast that to the servers.
local capabilities = require('blink.cmp').get_lsp_capabilities()
-- Enable the following language servers
-- Feel free to add/remove any LSPs that you want here. They will automatically be installed.
-- See `:help lsp-config` for information about keys and how to configure
@ -667,7 +661,6 @@ require('lazy').setup({
require('mason-tool-installer').setup { ensure_installed = ensure_installed }
for name, server in pairs(servers) do
server.capabilities = vim.tbl_deep_extend('force', {}, capabilities, server.capabilities or {})
vim.lsp.config(name, server)
vim.lsp.enable(name)
end