Skip to content

Commit

Permalink
feat(plugin): code screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
roeybenarieh committed Mar 18, 2024
1 parent c82dae2 commit 209c5bc
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions lua/plugins/silicon.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
return {
"michaelrommel/nvim-silicon",
-- lazy = true,
-- cmd = "Silicon",
opts = {
font = "FreeSans",
theme = "TwoDark",
line_pad = 5,
},
keys = {
{
mode = { "n" },
"<leader>csa",
"<CMD>Silicon<CR>",
desc = "buffer snapshot",
},
{
mode = { "v" }, -- 's' stands for "select". this is when text is selected in visual mode
"<leader>cs",
":Silicon <CR>",
desc = "text selection snapshot",
},
},
}

0 comments on commit 209c5bc

Please sign in to comment.