From 3ec1f5c3e37fbe7a0b4abfcee831eedb7d008a90 Mon Sep 17 00:00:00 2001 From: Oliver Ladner Date: Mon, 12 May 2025 09:48:52 +0200 Subject: [PATCH] fix(snipe): more secure keymap to close buffer --- lua/weeheavy/plugins/snipe.lua | 72 +++++++++++++++++----------------- 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/lua/weeheavy/plugins/snipe.lua b/lua/weeheavy/plugins/snipe.lua index f1a7515..15938e5 100644 --- a/lua/weeheavy/plugins/snipe.lua +++ b/lua/weeheavy/plugins/snipe.lua @@ -1,40 +1,40 @@ -- Buffer navigation -- https://github.com/leath-dub/snipe.nvim return { - "leath-dub/snipe.nvim", - opts = {}, - keys = { - { - "", - 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", - -- position = "cursor", - open_win_override = { - -- title = "i can haz file?", - border = "rounded", - }, - preselect_current = true, - }, - navigate = { - cancel_snipe = "q", - close_buffer = "d", - open_vsplit = "V", - open_split = "X", - }, - }) - end, + "leath-dub/snipe.nvim", + opts = {}, + keys = { + { + "", + 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", + -- position = "cursor", + open_win_override = { + -- title = "i can haz file?", + border = "rounded", + }, + preselect_current = true, + }, + navigate = { + cancel_snipe = "q", + close_buffer = "D", + open_vsplit = "V", + open_split = "X", + }, + }) + end, }