Skip to content

Commit

Permalink
feat(nvim): snipe + harpoon
Browse files Browse the repository at this point in the history
  • Loading branch information
squirmy committed Oct 26, 2024
1 parent 74b744a commit 7021ebe
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
2 changes: 2 additions & 0 deletions configuration/terminal/nvim/lazy-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"elixir-tools.nvim": { "branch": "main", "commit": "b465f6aff50257fa466de3886fc3e7de2dcff0de" },
"fidget.nvim": { "branch": "main", "commit": "d855eed8a06531a7e8fd0684889b2943f373c469" },
"friendly-snippets": { "branch": "main", "commit": "de8fce94985873666bd9712ea3e49ee17aadb1ed" },
"harpoon": { "branch": "harpoon2", "commit": "0378a6c428a0bed6a2781d459d7943843f374bce" },
"lazy.nvim": { "branch": "main", "commit": "cf8ecc2c5e4332760431a33534240b0cbc6680ab" },
"mason-lspconfig.nvim": { "branch": "main", "commit": "7446f47b3dfb7df801f31a6f6783c2ad119a6935" },
"mason.nvim": { "branch": "main", "commit": "e2f7f9044ec30067bc11800a9e266664b88cda22" },
Expand All @@ -17,5 +18,6 @@
"nvim-treesitter": { "branch": "master", "commit": "46a6587a23eb842411e27f325280e8d7f71bd00a" },
"plenary.nvim": { "branch": "master", "commit": "2d9b06177a975543726ce5c73fca176cedbffe9d" },
"rose-pine": { "branch": "main", "commit": "07a887a7bef4aacea8c7caebaf8cbf808cdc7a8e" },
"snipe.nvim": { "branch": "main", "commit": "4e162869cf0a777180c38afdf18f6364dadf877c" },
"vim-tmux-navigator": { "branch": "master", "commit": "a9b52e7d36114d40350099f254b5f299a35df978" }
}
24 changes: 24 additions & 0 deletions configuration/terminal/nvim/lua/squirmy/plugins/harpoon.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
return {
'ThePrimeagen/harpoon',
branch = 'harpoon2',
dependencies = { 'nvim-lua/plenary.nvim' },
config = function()
local harpoon = require('harpoon')

-- REQUIRED
harpoon:setup()
-- REQUIRED

vim.keymap.set('n', '<leader>a', function() harpoon:list():add() end)
vim.keymap.set('n', '<C-e>', function() harpoon.ui:toggle_quick_menu(harpoon:list()) end)

vim.keymap.set('n', '<C-h>', function() harpoon:list():select(1) end)
vim.keymap.set('n', '<C-j>', function() harpoon:list():select(2) end)
vim.keymap.set('n', '<C-k>', function() harpoon:list():select(3) end)
vim.keymap.set('n', '<C-l>', function() harpoon:list():select(4) end)

-- Toggle previous & next buffers stored within Harpoon list
vim.keymap.set('n', '<C-S-P>', function() harpoon:list():prev() end)
vim.keymap.set('n', '<C-S-N>', function() harpoon:list():next() end)
end,
}
7 changes: 7 additions & 0 deletions configuration/terminal/nvim/lua/squirmy/plugins/snipe.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
return {
'leath-dub/snipe.nvim',
keys = {
{ 'gb', function() require('snipe').open_buffer_menu() end, desc = 'Open Snipe buffer menu' },
},
opts = {},
}

0 comments on commit 7021ebe

Please sign in to comment.