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
- Host: GitHub
- URL: https://github.com/searidangpa/hopcopilot.nvim
- Owner: SearidangPa
- Created: 2025-02-19T16:46:59.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-04-08T02:47:20.000Z (10 months ago)
- Last Synced: 2025-04-08T03:29:50.079Z (10 months ago)
- Topics: copilot, lua, neovim-plugin, nvim, nvim-lua, nvim-plugin
- Language: Lua
- Homepage:
- Size: 38.1 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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`.