refactor: LazyVim.lsp.on_attach

This commit is contained in:
Folke Lemaitre
2024-06-08 08:11:28 +02:00
parent 6098a36d92
commit 8f7ee56dab
6 changed files with 32 additions and 42 deletions

View File

@ -66,10 +66,8 @@ return {
-- attach cmp source whenever copilot attaches
-- fixes lazy-loading issues with the copilot cmp source
LazyVim.lsp.on_attach(function(client)
if client.name == "copilot" then
copilot_cmp._on_insert_enter({})
end
end)
copilot_cmp._on_insert_enter({})
end, "copilot")
end,
},
},