From 072121b538d2accfc050a43d9af4e3e04c515c96 Mon Sep 17 00:00:00 2001 From: Matt Date: Sat, 8 Feb 2025 19:43:40 +0000 Subject: [PATCH] feat: Adding code screenshotting --- nvim/.config/nvim/lua/custom/plugins.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/nvim/.config/nvim/lua/custom/plugins.lua b/nvim/.config/nvim/lua/custom/plugins.lua index 3ee9393..8460f0a 100644 --- a/nvim/.config/nvim/lua/custom/plugins.lua +++ b/nvim/.config/nvim/lua/custom/plugins.lua @@ -21,6 +21,20 @@ local plugins = { } }, { "nvim-neotest/nvim-nio" }, + { + "mistricky/codesnap.nvim", build = "make build_generator", + keys = { + { "cc", "CodeSnap", mode = "x", desc = "Save selected code snapshot into clipboard" }, + { "cs", "CodeSnapSave", mode = "x", desc = "Save selected code snapshot in ~/Pictures" }, + }, + opts = { + save_path = "~/Pictures", + has_breadcrumbs = false, + bg_theme = "bamboo", + watermark = "", + mac_window_bar = false, + }, + }, { "neovim/nvim-lspconfig", config=function ()