add copilot

This commit is contained in:
Thomas Ruoff
2024-09-20 07:54:46 +02:00
parent 4020b3de41
commit c190f92ee7
3 changed files with 26 additions and 1 deletions

View File

@@ -2,12 +2,19 @@ vim.opt.completeopt = { 'menu', 'menuone', 'noselect' }
vim.opt.shortmess:append 'c'
local lspkind = require 'lspkind'
lspkind.init {}
lspkind.init {
symbol_map = {
Copilot = '',
},
mode = 'symbol',
}
vim.api.nvim_set_hl(0, 'CmpItemKindCopilot', { fg = '#6CC644' })
local cmp = require 'cmp'
cmp.setup {
sources = {
{ name = 'copilot' },
{ name = 'luasnip' },
{ name = 'nvim_lsp' },
{ name = 'path' },