Nvim: setup cmp for copilot

This commit is contained in:
Marko Korhonen 2023-10-04 11:01:08 +03:00
parent 7d07bbfaa6
commit 976b2d04fb
2 changed files with 14 additions and 1 deletions

View file

@ -8,6 +8,9 @@ return function()
-- Setup git completion source
require("cmp_git").setup()
--
-- Setup copilot source
require("copilot_cmp").setup()
-- Set completeopt to have a better completion experience
vim.o.completeopt = "menuone,noselect"
@ -49,6 +52,7 @@ return function()
end,
},
sources = {
{ name = "copilot" },
{ name = "nvim_lsp" },
{ name = "nvim_lua" },
{ name = "luasnip" },