1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

update cmp settings

This commit is contained in:
jdhao 2021-10-19 01:14:09 +08:00
parent c02dd8669e
commit 7750a43e55

View File

@ -24,6 +24,9 @@ cmp.setup({
end
end,
['<Esc>'] = cmp.mapping.close(),
['<CR>'] = cmp.mapping.confirm({ select = true }),
['<C-d>'] = cmp.mapping.scroll_docs(-4),
['<C-f>'] = cmp.mapping.scroll_docs(4),
},
sources = {
{ name = 'nvim_lsp' }, -- For nvim-lsp
@ -33,7 +36,7 @@ cmp.setup({
},
completion = {
keyword_length = 1,
completeopt = "menu,menuone,noinsert"
completeopt = "menu,noselect"
},
experimental = {
ghost_text = false