From 053d15ed1863a67f347e5ff4a5633af1adfcf158 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Sun, 12 May 2024 18:02:54 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(nvim):=20add=20new=20keybindin?= =?UTF-8?q?gs=20for=20codesnap?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/nvim/lua/plugins/extras/editor/codesnap.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.config/nvim/lua/plugins/extras/editor/codesnap.lua b/.config/nvim/lua/plugins/extras/editor/codesnap.lua index bf463424..c707ebc3 100644 --- a/.config/nvim/lua/plugins/extras/editor/codesnap.lua +++ b/.config/nvim/lua/plugins/extras/editor/codesnap.lua @@ -2,6 +2,10 @@ return { "mistricky/codesnap.nvim", build = "make", cmd = { "CodeSnap", "CodeSnapSave" }, + keys = { + { "cs", mode = "v", ":'<,'>CodeSnap", desc = "Screenshot (Clipboard)" }, + { "cS", mode = "v", ":'<,'>CodeSnapSave", desc = "Screenshot (Save)" }, + }, cond = vim.env.KITTY_SCROLLBACK_NVIM == nil, opts = { save_path = os.getenv("XDG_SCREENSHOTS_HOME") .. "/Codigo",