fix(sidekick): only add copilot to lspconfig when opts.nes.enabled ~= false

This commit is contained in:
Folke Lemaitre
2025-10-11 08:16:17 +02:00
parent f8b062b130
commit 049db39de0

View File

@@ -4,11 +4,13 @@ return {
-- copilot-language-server
{
"neovim/nvim-lspconfig",
opts = {
servers = {
copilot = {},
},
},
opts = function(_, opts)
local sk = LazyVim.opts("sidekick.nvim") ---@type sidekick.Config|{}
if vim.tbl_get(sk, "nes", "enabled") ~= false then
opts.servers = opts.servers or {}
opts.servers.copilot = opts.servers.copilot or {}
end
end,
},
-- lualine