We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hey, I am having trouble converting my cmp config to the new mapping API.
Before the new mapping API, I was able to do the following.
... ["<C-Space>"] = cmp.mapping.mode({ "i" }, function(core, fallback) local types = require("cmp.types") if fn.pumvisible() == 1 then core.reset() else core.complete(core.get_context({ reason = types.cmp.ContextReason.Manual })) end end), ...
Now fallback is the first argument, so I assumed core would be the second, but I guess its not exposed no longer, because the following code fails.
... ["<C-Space>"] = function(fallback, core) local types = require("cmp.types") if fn.pumvisible() == 1 then core.reset() else core.complete(core.get_context({ reason = types.cmp.ContextReason.Manual })) end end, ...
The text was updated successfully, but these errors were encountered:
@ram02z You can use require'cmp'.complete() require'cmp.close() instead.
require'cmp'.complete()
require'cmp.close()
Sorry, something went wrong.
See https://github.com/hrsh7th/nvim-cmp/blob/main/lua/cmp/mapping.lua
No branches or pull requests
Hey, I am having trouble converting my cmp config to the new mapping API.
Before the new mapping API, I was able to do the following.
Now fallback is the first argument, so I assumed core would be the second, but I guess its not exposed no longer, because the following code fails.
The text was updated successfully, but these errors were encountered: