Closed MariaSolOs closed 1 year ago
nvm, I fixed it with the following:
vim.keymap.set('i', '/', function()
if copilot.is_visible() then
copilot.dismiss()
return '<Ignore>'
else
return '/'
end
end, { expr = true })
That being said, I believe that such logic should be integrated into the plugin :)
@MunifTanjim Would you be against me preparing a PR for this? :)
Nope. I'm open to merging a PR for this.
I've mapped
suggestion.keymap.dismiss
to'/'
, but now that prevents me from typing'/'
in insert mode. How can I properly enable the command only if a suggestion is visible?