fix(snipe): more secure keymap to close buffer
This commit is contained in:
parent
4d54730b0f
commit
3ec1f5c3e3
1 changed files with 36 additions and 36 deletions
|
|
@ -1,40 +1,40 @@
|
||||||
-- Buffer navigation
|
-- Buffer navigation
|
||||||
-- https://github.com/leath-dub/snipe.nvim
|
-- https://github.com/leath-dub/snipe.nvim
|
||||||
return {
|
return {
|
||||||
"leath-dub/snipe.nvim",
|
"leath-dub/snipe.nvim",
|
||||||
opts = {},
|
opts = {},
|
||||||
keys = {
|
keys = {
|
||||||
{
|
{
|
||||||
"<leader><leader>",
|
"<leader><leader>",
|
||||||
function()
|
function()
|
||||||
require("snipe").open_buffer_menu()
|
require("snipe").open_buffer_menu()
|
||||||
end,
|
end,
|
||||||
desc = "Open Snipe buffer menu",
|
desc = "Open Snipe buffer menu",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
config = function()
|
config = function()
|
||||||
local snipe = require("snipe")
|
local snipe = require("snipe")
|
||||||
snipe.setup({
|
snipe.setup({
|
||||||
hints = {
|
hints = {
|
||||||
-- Charaters to use for hints
|
-- Charaters to use for hints
|
||||||
-- make sure they don't collide with the navigation keymaps
|
-- make sure they don't collide with the navigation keymaps
|
||||||
dictionary = "saflewcmpghio",
|
dictionary = "saflewcmpghio",
|
||||||
},
|
},
|
||||||
ui = {
|
ui = {
|
||||||
position = "topright",
|
position = "topright",
|
||||||
-- position = "cursor",
|
-- position = "cursor",
|
||||||
open_win_override = {
|
open_win_override = {
|
||||||
-- title = "i can haz file?",
|
-- title = "i can haz file?",
|
||||||
border = "rounded",
|
border = "rounded",
|
||||||
},
|
},
|
||||||
preselect_current = true,
|
preselect_current = true,
|
||||||
},
|
},
|
||||||
navigate = {
|
navigate = {
|
||||||
cancel_snipe = "q",
|
cancel_snipe = "q",
|
||||||
close_buffer = "d",
|
close_buffer = "D",
|
||||||
open_vsplit = "V",
|
open_vsplit = "V",
|
||||||
open_split = "X",
|
open_split = "X",
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue