Skip to content

Commit

Permalink
Add grapple.nvim
Browse files Browse the repository at this point in the history
  • Loading branch information
573 committed Sep 6, 2024
1 parent ecfc592 commit 05e51f2
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions home/programs/neovim.nix
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,7 @@ in
extraPlugins = with pkgs; [
vimPlugins.nnn-vim
vimPlugins.neoterm
vimPlugins.grapple-nvim
(pluggo "faster-nvim")
# (pluggo "deadcolumn-nvim")
];
Expand All @@ -399,6 +400,20 @@ in
['*'] = require('vim.ui.clipboard.osc52').copy('*'),
},
paste = { ['+'] = require('vim.ui.clipboard.osc52').paste('+'), ['*'] = require('vim.ui.clipboard.osc52').paste('*'), }, }
require("grapple").setup({
opts = {
scope = "git", -- also try out "git_branch"
},
event = { "BufReadPost", "BufNewFile" },
cmd = "Grapple",
keys = {
{ "<leader>m", "<cmd>Grapple toggle<cr>", desc = "Grapple toggle tag" },
{ "<leader>M", "<cmd>Grapple toggle_tags<cr>", desc = "Grapple open tags window" },
{ "<leader>n", "<cmd>Grapple cycle_tags next<cr>", desc = "Grapple cycle next tag" },
{ "<leader>p", "<cmd>Grapple cycle_tags prev<cr>", desc = "Grapple cycle previous tag" },
},
})
'';
extraPackages = with pkgs; [
nixpkgs-fmt
Expand Down

0 comments on commit 05e51f2

Please sign in to comment.