aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2022-11-25 00:52:11 +0300
committereug-vs <eugene@eug-vs.xyz>2022-11-25 00:52:11 +0300
commit2dd7d84a1e6c295577c0f4d2ba1717d25a531670 (patch)
tree0bcdbee48b53857e3776c645da5f67f1b215676f
parent8eb0f20181c4d0022af354f23bc367f5611e3372 (diff)
downloaddotfiles-2dd7d84a1e6c295577c0f4d2ba1717d25a531670.tar.gz
chore(nvim): catch up with plugin updates
-rw-r--r--nvim/.config/nvim/lua/completion.lua10
-rw-r--r--nvim/.config/nvim/lua/lsp-config.lua2
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({
['<C-Space>'] = cmp.mapping.complete(),
- ['<C-e>'] = cmp.mapping.close(),
+ ['<C-e>'] = cmp.mapping.abort(),
['<CR>'] = 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 {