Skip to content
This repository has been archived by the owner on May 25, 2023. It is now read-only.

Commit

Permalink
Merge pull request ayamir#607 from fecet/feat/visual-hop
Browse files Browse the repository at this point in the history
feat: use hop in visual mode
  • Loading branch information
ayamir authored Apr 2, 2023
2 parents 505b25f + 0674666 commit b23dc33
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lua/keymap/editor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ local plug_map = {
["nx|gea"] = map_cr("EasyAlign"):with_desc("edit: Align with delimiter"),

-- Plugin: hop
["n|<leader>w"] = map_cu("HopWord"):with_noremap():with_desc("jump: Goto word"),
["n|<leader>j"] = map_cu("HopLine"):with_noremap():with_desc("jump: Goto line"),
["n|<leader>k"] = map_cu("HopLine"):with_noremap():with_desc("jump: Goto line"),
["n|<leader>c"] = map_cu("HopChar1"):with_noremap():with_desc("jump: Goto one char"),
["n|<leader>cc"] = map_cu("HopChar2"):with_noremap():with_desc("jump: Goto two chars"),
["nv|<leader>w"] = map_cmd("<Cmd>HopWord<CR>"):with_noremap():with_desc("jump: Goto word"),
["nv|<leader>j"] = map_cmd("<Cmd>HopLine<CR>"):with_noremap():with_desc("jump: Goto line"),
["nv|<leader>k"] = map_cmd("<Cmd>HopLine<CR>"):with_noremap():with_desc("jump: Goto line"),
["nv|<leader>c"] = map_cmd("<Cmd>HopChar1<CR>"):with_noremap():with_desc("jump: Goto one char"),
["nv|<leader>cc"] = map_cmd("<Cmd>HopChar2<CR>"):with_noremap():with_desc("jump: Goto two chars"),

-- Plugin: treehopper
["o|m"] = map_cu("lua require('tsht').nodes()"):with_silent():with_desc("jump: Operate across syntax tree"),
Expand Down

0 comments on commit b23dc33

Please sign in to comment.