summaryrefslogtreecommitdiff
path: root/.config/nvim
diff options
context:
space:
mode:
authorAdam <56338480+adastx@users.noreply.github.com>2022-04-18 22:53:17 +0200
committerAdam <56338480+adastx@users.noreply.github.com>2022-04-18 22:53:17 +0200
commit8c2adae23708bc792c708b24c8ef08152b3e4ff2 (patch)
treeaf8c65ff676f1e95ca54504526865f8e3e83b27d /.config/nvim
parent7a73b1352fde680b01f63ff232192b1a48ecffca (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' },