Merge 5502cea3f66d7acd58233e653916cc76b8bde47f into d350db2449da40df003c40d440f909d74e2d4e70

This commit is contained in:
Umut Önder 2025-04-17 15:22:48 +00:00 committed by GitHub
commit 0c02dc9a02
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -711,6 +711,19 @@ require('lazy').setup({
})
require('mason-tool-installer').setup { ensure_installed = ensure_installed }
-- Handle lsp setups differently based on Neovim version
-- See :help vim.lsp.config and :help vim.lsp.enable for Neovim 0.11+
if vim.fn.has 'nvim-0.11' == 1 then
for server, config in pairs(servers) do
-- This handles overriding only values explicitly passed
-- by the server configuration above. Useful when disabling
-- certain features of an LSP (for example, turning off formatting for ts_ls)
config.capabilities = vim.tbl_deep_extend('force', {}, capabilities, config.capabilities or {})
vim.lsp.config(server, config)
vim.lsp.enable(server)
end
else
-- For Neovim 0.10 and below, use mason-lspconfig for setup
require('mason-lspconfig').setup {
ensure_installed = {}, -- explicitly set to an empty table (Kickstart populates installs via mason-tool-installer)
automatic_installation = false,
@ -725,6 +738,7 @@ require('lazy').setup({
end,
},
}
end
end,
},