An open API service indexing awesome lists of open source software.

https://github.com/searidangpa/hopcopilot.nvim

Hop to the place you want in copilot suggestion
https://github.com/searidangpa/hopcopilot.nvim

copilot lua neovim-plugin nvim nvim-lua nvim-plugin

Last synced: 10 months ago
JSON representation

Hop to the place you want in copilot suggestion

Awesome Lists containing this project

README

          

# hopcopilot.nvim
Hop to the place you want in copilot suggestion. Inspired by folke's flash.nvim.

## This is the flow
* 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.

## Demo
https://github.com/user-attachments/assets/41f07a2c-090b-4d0b-9175-4a0058f985fe

It should also handle multiline suggestions. [demo](https://github.com/user-attachments/assets/7697bc8c-00cd-48ce-b281-8f549fd562c7).

## How i set it up

```lua
return {
'SearidangPa/hopcopilot.nvim',
dependencies = {
'github/copilot.vim',
},
config = function()
local hopcopilot = require 'hopcopilot'
hopcopilot.setup()
vim.keymap.set('i', '', hopcopilot.hop_copilot, { silent = true, desc = 'hop copilot' })
vim.keymap.set('i', '', hopcopilot.hop_copilot, { silent = true, desc = 'hop copilot' })
end,
}
```

## Dependencies
* `github/copilot.vim`.