Skip to content

Commit

Permalink
feat(media): add codesnap.nvim
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed Apr 4, 2024
1 parent d85b6e8 commit 24e4244
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lua/astrocommunity/media/codesnap-nvim/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# CodeSnap.nvim

📸 Snapshot plugin with rich features that can make pretty code snapshots for Neovim

**Repository:** <https://github.com/mistricky/codesnap.nvim>
24 changes: 24 additions & 0 deletions lua/astrocommunity/media/codesnap-nvim/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
local prefix = "<Leader>c"
return {
"mistricky/codesnap.nvim",
build = "build_generator",
cmd = { "CodeSnap", "CodeSnapSave" },
dependencies = {
{
"AstroNvim/astrocore",
opts = {
mappings = {
v = {
[prefix] = { desc = " CodeSnap" },
[prefix .. "s"] = { ":'<,'>CodeSnap<CR>", desc = "CodeSnap (clipboard)" },
[prefix .. "S"] = { ":'<,'>CodeSnapSave<CR>", desc = "CodeSnap (save)" },
},
},
},
},
},
opts = {
mac_window_bar = false,
watermark = "",
},
}

0 comments on commit 24e4244

Please sign in to comment.