.config/nvim/lua/plugins/lsp.lua

changeset 1035
e46ff6e45c96
parent 1033
589244a349f6
child 1043
e55463fb35e2
--- a/.config/nvim/lua/plugins/lsp.lua
+++ b/.config/nvim/lua/plugins/lsp.lua
@@ -51,8 +51,9 @@ return {
           ["<Right>"] = cmp.mapping.confirm({select = true}),
           ["<Space>"] = function(fallback)
             if cmp.visible() then
-              cmp.confirm({select = false})
-              vim.api.nvim_feedkeys(" ", "n", false)
+              cmp.confirm({select = false}, function()
+                vim.api.nvim_feedkeys(" ", "n", false)
+              end)
             end
             fallback()
           end,

mercurial