summaryrefslogtreecommitdiff
path: root/.config/nvim
diff options
context:
space:
mode:
authorAdam <adam.moloney.stuck@gmail.com>2022-04-18 22:53:17 +0200
committeradamstuck <adam.moloney.stuck@gmail.com>2022-04-19 08:56:29 +0200
commit4b042c6ed6a802b8f48b78d9ddd138b3c6416973 (patch)
tree7ab98627683c054b0d32b8d607c100e1f7edc978 /.config/nvim
parentc95a8644d743ef5803081308db94d6b7cbcdd705 (diff)
nvim: cmp compatability update
Diffstat (limited to '.config/nvim')
-rw-r--r--.config/nvim/lua/setup/nvim-cmp.lua4
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' },