-
-
Notifications
You must be signed in to change notification settings - Fork 252
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(motion): Added harp.nvim plugin (#910)
* Created harp-nvim.lua plugin spec * Fixed generic function names * Re-Create Orphaned Readme * Applied suggestions from code review Co-authored-by: Uzair Aftab <[email protected]> Co-authored-by: Micah Halter <[email protected]> * Simplified Readme * Fixed url syntax * Added dependencies section * Fixed dependencies section * Update lua/astrocommunity/motion/harp-nvim/README.md * chore(harp-nvim): Format code --------- Co-authored-by: Uzair Aftab <[email protected]> Co-authored-by: Micah Halter <[email protected]>
- Loading branch information
1 parent
0a9b35e
commit e7f1e11
Showing
2 changed files
with
44 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# harp.nvim | ||
|
||
Neovim integration for use with [harp](https://github.com/Axlefublr/harp) | ||
|
||
**Dependencies:** | ||
|
||
[harp](https://github.com/Axlefublr/harp) | ||
|
||
**Repository:** <https://github.com/Thorinori/harp-nvim> | ||
|
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,34 @@ | ||
return { | ||
{ | ||
"Thorinori/harp-nvim", | ||
lazy = true, | ||
dependencies = { | ||
"AstroNvim/astrocore", | ||
opts = { | ||
mappings = { | ||
n = { | ||
["<Leader>i"] = { function() require("harp").default_get() end, desc = ":edit file in given register" }, | ||
["<Leader>I"] = { | ||
function() require("harp").default_set() end, | ||
desc = "Store current buffer path in given register", | ||
}, | ||
["<Leader>x"] = { | ||
function() require("harp").percwd_get() end, | ||
desc = ":edit file in given register, specific to this project", | ||
}, | ||
["<Leader>X"] = { | ||
function() require("harp").percwd_set() end, | ||
desc = "Store current buffer path in given register, specific to this project", | ||
}, | ||
["'"] = { function() require("harp").perbuffer_mark_get() end, desc = "Show local marks" }, | ||
["m"] = { function() require("harp").perbuffer_mark_set() end, desc = "Set local mark" }, | ||
["<Leader>'"] = { function() require("harp").global_mark_get() end, desc = "Show global marks" }, | ||
["<Leader>m"] = { function() require("harp").global_mark_set() end, desc = "Set global mark" }, | ||
["<Leader>z"] = { function() require("harp").cd_get() end, desc = "CD to path stored in register" }, | ||
["<Leader>Z"] = { function() require("harp").cd_set() end, desc = "Set CWD in register" }, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
} |