mirror of
https://github.com/tomru/nvim.git
synced 2026-03-04 06:57:15 +01:00
add copilot
This commit is contained in:
@@ -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' },
|
||||
|
||||
Reference in New Issue
Block a user