Replies: 2 comments 2 replies
-
For |
Beta Was this translation helpful? Give feedback.
1 reply
-
This is how I implemented it, seems to be working well. vim.api.nvim_create_autocmd('User', {
pattern = 'BlinkCmpCompletionMenuOpen',
callback = function()
vim.b.copilot_suggestion_hidden = true
end,
})
vim.api.nvim_create_autocmd('User', {
pattern = 'BlinkCmpCompletionMenuClose',
callback = function()
vim.b.copilot_suggestion_hidden = false
end,
})
Thanks for the amazing plugin @Saghen. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I’m trying to integrate with copilot.lua. I have seen a snippet in this Pull Request that I would like to integrate. When using
require("blink.cmp").on_open
then I get an error informing me thatwindows
is a nil value. So i tried to read the code and use the internal functionality for now:However, doing this I noticed that the callback seems to be triggered each time the autocomplete could be opened and not each time it is actually opened because I have
auto_show = false
. This means that the code gets executed whenever I press a key in insert mode as that would generally trigger the autocomplete. Is this a misunderstanding on my part on how to correctly use this or a bug?Beta Was this translation helpful? Give feedback.
All reactions