mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-03-10 09:27:25 +00:00
fix(sidekick): only add copilot to lspconfig when opts.nes.enabled ~= false
This commit is contained in:
@@ -4,11 +4,13 @@ return {
|
|||||||
-- copilot-language-server
|
-- copilot-language-server
|
||||||
{
|
{
|
||||||
"neovim/nvim-lspconfig",
|
"neovim/nvim-lspconfig",
|
||||||
opts = {
|
opts = function(_, opts)
|
||||||
servers = {
|
local sk = LazyVim.opts("sidekick.nvim") ---@type sidekick.Config|{}
|
||||||
copilot = {},
|
if vim.tbl_get(sk, "nes", "enabled") ~= false then
|
||||||
},
|
opts.servers = opts.servers or {}
|
||||||
},
|
opts.servers.copilot = opts.servers.copilot or {}
|
||||||
|
end
|
||||||
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
-- lualine
|
-- lualine
|
||||||
|
|||||||
Reference in New Issue
Block a user