From 2dd7d84a1e6c295577c0f4d2ba1717d25a531670 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Fri, 25 Nov 2022 00:52:11 +0300 Subject: chore(nvim): catch up with plugin updates --- nvim/.config/nvim/lua/completion.lua | 10 +++++----- nvim/.config/nvim/lua/lsp-config.lua | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/nvim/.config/nvim/lua/completion.lua b/nvim/.config/nvim/lua/completion.lua index 2e925db..d37061c 100644 --- a/nvim/.config/nvim/lua/completion.lua +++ b/nvim/.config/nvim/lua/completion.lua @@ -9,14 +9,14 @@ cmp.setup({ require('luasnip').lsp_expand(args.body) end, }, - mapping = { + mapping = cmp.mapping.preset.insert({ [''] = cmp.mapping.complete(), - [''] = cmp.mapping.close(), + [''] = cmp.mapping.abort(), [''] = cmp.mapping.confirm({ behavior = cmp.ConfirmBehavior.Insert, - select = true, - }), - }, + select = true + }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items. + }), sources = { { name = 'nvim_lsp' }, { name = 'nvim_lua' }, diff --git a/nvim/.config/nvim/lua/lsp-config.lua b/nvim/.config/nvim/lua/lsp-config.lua index f86103b..01ae261 100644 --- a/nvim/.config/nvim/lua/lsp-config.lua +++ b/nvim/.config/nvim/lua/lsp-config.lua @@ -28,7 +28,7 @@ local flags = { } local capabilities = vim.lsp.protocol.make_client_capabilities() -capabilities = require('cmp_nvim_lsp').update_capabilities(capabilities) +capabilities = require('cmp_nvim_lsp').default_capabilities(capabilities) -- Typescript nvim_lsp.tsserver.setup { -- cgit v1.2.3