-
-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(motion): Add hop.nvim * fix(motion): fixed hop.nvim location --------- Co-authored-by: Micah Halter <micah@mehalter.com>
- Loading branch information
Showing
3 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# hop.nvim | ||
|
||
**Repository:** <https://github.com/phaazon/hop.nvim> | ||
|
||
Hop is an EasyMotion-like plugin allowing you to jump anywhere in a document with as few keystrokes as possible. It does so by annotating text in your buffer with hints, short string sequences for which each character represents a key to type to jump to the annotated text. Most of the time, those sequences’ lengths will be between 1 to 3 characters, making every jump target in your document reachable in a few keystrokes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
return { | ||
"phaazon/hop.nvim", | ||
opts = {}, | ||
keys = { | ||
{ | ||
"s", | ||
function() require("hop").hint_words() end, | ||
mode = { "n" }, | ||
desc = "Hop hint words", | ||
}, | ||
{ | ||
"<S-s>", | ||
function() require("hop").hint_lines() end, | ||
mode = { "n" }, | ||
desc = "Hop hint lines", | ||
}, | ||
{ | ||
"s", | ||
function() require("hop").hint_words { extend_visual = true } end, | ||
mode = { "n" }, | ||
desc = "Hop hint words", | ||
}, | ||
{ | ||
"<S-s>", | ||
function() require("hop").hint_lines { extend_visual = true } end, | ||
mode = { "v" }, | ||
desc = "Hop hint lines", | ||
}, | ||
}, | ||
} |