Skip to content

Commit

Permalink
feat(motion): Added harp.nvim plugin (#910)
Browse files Browse the repository at this point in the history
* 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
3 people authored Apr 24, 2024
1 parent 0a9b35e commit e7f1e11
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lua/astrocommunity/motion/harp-nvim/README.md
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>

34 changes: 34 additions & 0 deletions lua/astrocommunity/motion/harp-nvim/harp-nvim.lua
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" },
},
},
},
},
},
}

0 comments on commit e7f1e11

Please sign in to comment.