feat: add snipe.nvim

This commit is contained in:
Oliver Ladner 2024-09-05 10:29:21 +02:00
commit f3ab80b598
2 changed files with 33 additions and 0 deletions

View file

@ -89,6 +89,7 @@ This is more accurate than `nvim --startuptime`.
| **copilot.lua** | The better github.com/github/copilot.vim | <https://github.com/zbirenbaum/copilot.lua> |
| **copilot-cmp** | transforms zbirenbaum/copilot.lua into a cmp source. | <https://github.com/zbirenbaum/copilot-cmp> |
| **nvim-lint** | Narrow-scope linter plugin to use via Neovim diagnostic framework | <https://github.com/mfussenegger/nvim-lint> |
| **snipe.nvim** | Buffer navigation | <https://github.com/leath-dub/snipe.nvim> |
## Looks

View file

@ -0,0 +1,32 @@
-- Buffer navigation
-- https://github.com/leath-dub/snipe.nvim
return {
"leath-dub/snipe.nvim",
opts = {},
keys = {
{
"<leader><leader>",
function()
require("snipe").open_buffer_menu()
end,
desc = "Open Snipe buffer menu",
},
},
config = function()
local snipe = require("snipe")
snipe.setup({
hints = {
-- Charaters to use for hints
-- make sure they don't collide with the navigation keymaps
dictionary = "saflewcmpghio",
},
navigate = {
cancel_snipe = "q",
-- Close the buffer under the cursor
-- PR not merged yet: https://github.com/leath-dub/snipe.nvim/pull/13
-- NOTE: Make sure you don't use the character below on your dictionary
close_buffer = "d",
},
})
end,
}