Hop to the place you want in copilot suggestion. Inspired by folke's flash.nvim.
- I see a copilot suggestion
- I only want to accept up until a certain point
- I press a trigger-key and a char that i want to hop to
- This plugin label all the places that has the char
- I input the label key to accept copilot suggestion up until then.
Screen.Recording.2025-02-19.at.12.14.41.PM.mov
It should also handle multiline suggestions. demo.
return {
'SearidangPa/hopcopilot.nvim',
dependencies = {
'github/copilot.vim',
},
config = function()
local hopcopilot = require 'hopcopilot'
hopcopilot.setup()
vim.keymap.set('i', '<M-s>', hopcopilot.hop_copilot, { silent = true, desc = 'hop copilot' })
vim.keymap.set('i', '<D-s>', hopcopilot.hop_copilot, { silent = true, desc = 'hop copilot' })
end,
}github/copilot.vim.