Skip to content

Commit

Permalink
feat(motion): add grapple (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xricksanchez authored Apr 16, 2023
1 parent 8fc38d7 commit 305058a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lua/astrocommunity/motion/grapple/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Grapple

**Repository:** <https://github.com/cbochs/grapple.nvim>

Neovim plugin for tagging important files
17 changes: 17 additions & 0 deletions lua/astrocommunity/motion/grapple/grapple.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
local prefix = "<leader><leader>"
return {
"cbochs/grapple.nvim",
dependencies = { "nvim-lua/plenary.nvim" },
cmd = { "Grapple" },
keys = {
{ prefix, desc = "Grapple" },
{ prefix .. "a", "<cmd>GrappleTag<CR>", desc = "Add file" },
{ prefix .. "d", "<cmd>GrappleUntag<CR>", desc = "Remove file" },
{ prefix .. "t", "<cmd>GrappleToggle<CR>", desc = "Toggle a file" },
{ prefix .. "e", "<cmd>GrapplePopup tags<CR>", desc = "Select from tags" },
{ prefix .. "s", "<cmd>GrapplePopup scopes<CR>", desc = "Select a project scope" },
{ prefix .. "x", "<cmd>GrappleReset<CR>", desc = "Clear tags from current project" },
{ "<C-k>", "<cmd>GrappleCycle forward<CR>", desc = "Select next tag" },
{ "<C-j>", "<cmd>GrappleReset<CR>", desc = "Select previous tag" },
},
}

0 comments on commit 305058a

Please sign in to comment.