cmp issues fixed

This commit is contained in:
Norm Rasmussen
2022-10-05 09:26:39 -04:00
parent 557bf04368
commit 89733d8686
3 changed files with 19 additions and 19 deletions

View File

@ -37,10 +37,13 @@ cmp.setup {
['<C-d>'] = cmp.mapping.scroll_docs(-4),
['<C-f>'] = cmp.mapping.scroll_docs(4),
['<C-Space>'] = cmp.mapping.complete(),
['<C-e>'] = cmp.mapping.close(),
["<C-e>"] = cmp.mapping({
i = cmp.mapping.abort(),
c = cmp.mapping.close(),
}),
["<C-y>"] = cmp.config.disable,
['<CR>'] = cmp.mapping.confirm {
behavior = cmp.ConfirmBehavior.Replace,
select = true,
select = false,
},
-- Tab mapping
@ -68,15 +71,12 @@ cmp.setup {
sources = {
{ name = 'nvim-lsp' },
{ name = 'luasnip' },
{ name = 'cmdline'},
{ name = 'path' },
{ name = 'buffer' },
{ name = 'zsh' },
},
}
-- see https://github.com/hrsh7th/nvim-cmp/wiki/Menu-Appearance#how-to-add-visual-studio-code-dark-theme-colors-to-the-menu
vim.cmd[[
highlight! link CmpItemMenu Comment