feat: add snipe.nvim
This commit is contained in:
parent
3b2af3b611
commit
f3ab80b598
2 changed files with 33 additions and 0 deletions
32
lua/weeheavy/plugins/snipe.lua
Normal file
32
lua/weeheavy/plugins/snipe.lua
Normal 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,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue