Skip to content

Commit

Permalink
feat(grapple-nvim): better keymaps + add nvim-web-devicons dependency (
Browse files Browse the repository at this point in the history
…#781)

fix(grapple-nvim): better keymaps + add nvim-web-devicons as a lazy dependency

Co-authored-by: Calvin Bochulak <calvin@Calvins-MBP.lan>
  • Loading branch information
cbochs and Calvin Bochulak committed Mar 3, 2024
1 parent bbd7f7f commit c730a7e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lua/astrocommunity/motion/grapple-nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,17 @@ maps.n[prefix] = { desc = icon .. "Grapple" }
require("astronvim.utils").set_mappings(maps)
return {
"cbochs/grapple.nvim",
dependencies = {
{ "nvim-tree/nvim-web-devicons", lazy = true },
},
cmd = { "Grapple" },
keys = {
{ prefix .. "a", "<cmd>Grapple tag<CR>", desc = "Add file" },
{ prefix .. "d", "<cmd>Grapple untag<CR>", desc = "Remove file" },
{ prefix .. "t", "<cmd>Grapple toggle<CR>", desc = "Toggle a file" },
{ prefix .. "e", "<cmd>Grapple open_tags<CR>", desc = "Select from tags" },
{ prefix .. "s", "<cmd>Grapple open_scopes<CR>", desc = "Select a scope" },
{ prefix .. "l", "<cmd>Grapple open_loaded<CR>", desc = "Select a loaded scope" },
{ prefix .. "e", "<cmd>Grapple toggle_tags<CR>", desc = "Select from tags" },
{ prefix .. "s", "<cmd>Grapple toggle_scopes<CR>", desc = "Select a scope" },
{ prefix .. "l", "<cmd>Grapple toggle_loaded<CR>", desc = "Select a loaded scope" },
{ prefix .. "x", "<cmd>Grapple reset<CR>", desc = "Clear tags from current project" },
{ "<C-n>", "<cmd>Grapple cycle forward<CR>", desc = "Select next tag" },
{ "<C-p>", "<cmd>Grapple cycle backward<CR>", desc = "Select previous tag" },
Expand Down

0 comments on commit c730a7e

Please sign in to comment.