added copilot
This commit is contained in:
parent
a404864548
commit
0e0308a42d
@ -21,6 +21,7 @@ return {
|
||||
{ 'hrsh7th/cmp-nvim-lsp-signature-help' },
|
||||
{ 'chrisgrieser/cmp_yanky' },
|
||||
{ 'p00f/clangd_extensions.nvim' },
|
||||
{ 'zbirenbaum/copilot-cmp' },
|
||||
{
|
||||
'windwp/nvim-autopairs',
|
||||
config = true,
|
||||
@ -93,6 +94,7 @@ return {
|
||||
end,
|
||||
},
|
||||
sources = {
|
||||
{ name = "copilot", group_index = 2 },
|
||||
{ name = 'codeium' },
|
||||
{ name = 'luasnip', priority = 8 },
|
||||
{
|
||||
@ -161,7 +163,7 @@ return {
|
||||
format = function(entry, vim_item)
|
||||
local kind = lspkind.cmp_format({
|
||||
mode = 'symbol',
|
||||
symbol_map = { Codeium = '' },
|
||||
symbol_map = { Codeium = '', Copilot = "", },
|
||||
maxwidth = 50,
|
||||
})(entry, vim_item)
|
||||
local strings = vim.split(kind.kind, '%s', { trimempty = true })
|
||||
|
24
lua/plugins/copilot.lua
Normal file
24
lua/plugins/copilot.lua
Normal file
@ -0,0 +1,24 @@
|
||||
return {
|
||||
'zbirenbaum/copilot.lua',
|
||||
cmd = 'Copilot',
|
||||
event = 'InsertEnter',
|
||||
config = function()
|
||||
require('copilot').setup({
|
||||
filetypes = {
|
||||
yaml = false,
|
||||
markdown = false,
|
||||
help = false,
|
||||
gitcommit = false,
|
||||
gitrebase = false,
|
||||
hgcommit = false,
|
||||
svn = false,
|
||||
cvs = false,
|
||||
cpp = true,
|
||||
['.'] = false,
|
||||
},
|
||||
suggestion = { enabled = false },
|
||||
panel = { enabled = false },
|
||||
})
|
||||
end,
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user