diff options
Diffstat (limited to '.config/nvim')
-rw-r--r-- | .config/nvim/lua/setup/nvim-cmp.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.config/nvim/lua/setup/nvim-cmp.lua b/.config/nvim/lua/setup/nvim-cmp.lua index 4f08334..83b54cd 100644 --- a/.config/nvim/lua/setup/nvim-cmp.lua +++ b/.config/nvim/lua/setup/nvim-cmp.lua @@ -14,7 +14,7 @@ cmp.setup { require('luasnip').lsp_expand(args.body) end, }, - mapping = { + mapping = cmp.mapping.preset.insert({ ['<CR>'] = cmp.mapping.confirm({ select = true }), ['<C-n>'] = cmp.mapping.select_next_item(), ['<C-p>'] = cmp.mapping.select_prev_item(), @@ -42,7 +42,7 @@ cmp.setup { fallback() end end, { "i", "s" }), - }, + }), sources = { { name = 'nvim_lsp' }, { name = 'luasnip' }, |