neovim/lua/weeheavy/plugins/snipe.lua

35 lines
792 B
Lua

-- 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",
},
ui = {
position = "topright",
},
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,
}