From afc6eb0ce23c39bd8a587e2a759b4cad4bae1ea0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Wed, 19 Feb 2025 14:39:14 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9A=99=EF=B8=8F=20config(nvim):=20add=20new?= =?UTF-8?q?=20bindings=20to=20snacks=20picker=20and=20enable=20the=20image?= =?UTF-8?q?=20snack?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../plugins/extras/util/snacks-extended.lua | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.config/nvim/lua/plugins/extras/util/snacks-extended.lua b/.config/nvim/lua/plugins/extras/util/snacks-extended.lua index a14c59ee..829d809e 100644 --- a/.config/nvim/lua/plugins/extras/util/snacks-extended.lua +++ b/.config/nvim/lua/plugins/extras/util/snacks-extended.lua @@ -26,6 +26,24 @@ return { position = "float", }, }, + picker = { + win = { + input = { + keys = { + [""] = { "preview_scroll_up", mode = { "i", "n" } }, + [""] = { "list_scroll_down", mode = { "i", "n" } }, + [""] = { "preview_scroll_down", mode = { "i", "n" } }, + [""] = { "list_scroll_up", mode = { "i", "n" } }, + }, + }, + }, + }, + image = { + enabled = true, + -- doc = { + -- inline = false, + -- }, + }, scroll = { animate = { duration = { step = 10, total = 150 },