feat(nvim): switch back to copilot

This commit is contained in:
Moritz Böhme 2024-01-06 11:45:54 +01:00
parent 07dfe50be0
commit ed1c1a6f69
No known key found for this signature in database
GPG key ID: 970C6E89EB0547A9
5 changed files with 17 additions and 35 deletions

View file

@ -76,8 +76,21 @@ with builtins;
{ plugin = cmp-nvim-lsp; }
{ plugin = cmp_luasnip; }
{
plugin = codeium-nvim;
plugin = copilot-cmp;
opts = { };
dependencies = [
{
plugin = copilot-lua;
opts = {
suggestion = { enabled = false; };
panel = { enabled = false; };
};
conf = /* lua */ ''
require("copilot").setup(opts)
vim.cmd("Copilot disable")
'';
}
];
}
{ plugin = friendly-snippets; }
{ plugin = lspkind-nvim; }

View file

@ -17,7 +17,7 @@ cmp.setup({
maxwidth = 50, -- prevent the popup from showing more than provided characters
ellipsis_char = "...", -- when popup menu exceed maxwidth, the truncated part would show ellipsis_char instead
symbol_map = {
Codeium = "",
Copilot = "",
},
}),
},
@ -56,7 +56,7 @@ cmp.setup({
{ name = "async_path", priority = 1 },
{ name = "buffer", priority = 1 },
{ name = "luasnip", priority = 2 },
{ name = "codeium", priority = 3 },
{ name = "copilot", priority = 3 },
{ name = "nvim_lsp", priority = 3 },
},
})
@ -213,4 +213,4 @@ end
vim.api.nvim_create_user_command("CmpToggle", sources_picker, {})
-- disable sources by default
disable_source("codeium")
-- disable_source("codeium")