Skip to content

SearidangPa/hopcopilot.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 

Repository files navigation

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

Screen.Recording.2025-02-19.at.12.14.41.PM.mov

It should also handle multiline suggestions. demo.

How i set it up

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,
}

Dependencies

  • github/copilot.vim.

About

Hop to the place you want in copilot suggestion

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages