Skip to content

Commit

Permalink
Multiple window support for hop, and replace with maintained fork
Browse files Browse the repository at this point in the history
Inspired by: ayamir/nvimdots#936
  • Loading branch information
kang8 committed Aug 9, 2023
1 parent 5564e84 commit fbf446e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion lazy-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"gitsigns.nvim": { "branch": "main", "commit": "5d73da785a3c05fd63ac31769079db05169a6ec7" },
"highlight-undo.nvim": { "branch": "main", "commit": "1aeada51fb956f1ef121f29ddbb2ef6108a3c480" },
"hlchunk.nvim": { "branch": "main", "commit": "03a5a67790efdab4ca4ae93963bc83b2564fa3f8" },
"hop.nvim": { "branch": "v2", "commit": "90db1b2c61b820e230599a04fedcd2679e64bd07" },
"hop.nvim": { "branch": "master", "commit": "e41c04125fab05406be576640749352ad3eafcdb" },
"lazy.nvim": { "branch": "main", "commit": "3ad55ae678876516156cca2f361c51f7952a924b" },
"lualine.nvim": { "branch": "master", "commit": "05d78e9fd0cdfb4545974a5aa14b1be95a86e9c9" },
"markdown-preview.nvim": { "branch": "master", "commit": "02cc3874738bc0f86e4b91f09b8a0ac88aef8e96" },
Expand Down
16 changes: 8 additions & 8 deletions lua/plugins/common.lua
Original file line number Diff line number Diff line change
Expand Up @@ -148,16 +148,16 @@ return {
},
},
{
'phaazon/hop.nvim',
'smoka7/hop.nvim',
lazy = true,
branch = 'v2',
event = 'BufReadPost',
version = '*',
event = { 'CursorHold', 'CursorHoldI' },
keys = {
{ '<leader>w', '<cmd>HopWord<cr>', mode = { 'n', 'x' }, desc = 'jump: Goto word' },
{ '<leader>j', '<cmd>HopLine<cr>', mode = { 'n', 'x' }, desc = 'jump: Goto line' },
{ '<leader>k', '<cmd>HopLine<cr>', mode = { 'n', 'x' }, desc = 'jump: Goto line' },
{ '<leader>f', '<cmd>HopChar1<cr>', mode = { 'n', 'x' }, desc = 'jump: Goto one char' },
{ '<leader>ff', '<cmd>HopChar2<cr>', mode = { 'n', 'x' }, desc = 'jump: Goto two char' },
{ '<leader>w', '<cmd>HopWordMW<cr>', mode = { 'n', 'x' }, desc = 'jump: Goto word' },
{ '<leader>j', '<cmd>HopLineMW<cr>', mode = { 'n', 'x' }, desc = 'jump: Goto line' },
{ '<leader>k', '<cmd>HopLineMW<cr>', mode = { 'n', 'x' }, desc = 'jump: Goto line' },
{ '<leader>f', '<cmd>HopChar1MW<cr>', mode = { 'n', 'x' }, desc = 'jump: Goto one char' },
{ '<leader>ff', '<cmd>HopChar2MW<cr>', mode = { 'n', 'x' }, desc = 'jump: Goto two char' },
},
config = true,
},
Expand Down

0 comments on commit fbf446e

Please sign in to comment.