Files
neovim-config/lua/plugins/codesnap.lua
T
rootiest c0a3511384 🧙 Major Restructuring Update
- Plugins are now properly organized into separate folders.
- General configurations are also now organized by category into
folders.
- Now using lazyvim-defined plugins whenever possible for a more
consistent and clean experience.
- Duplicate manual plugin definitions were removed.
- Extensive testing has been performed to ensure config works on fresh
installs and a variety of systems.
- Further slimming of manual plugins and an updated dependency list is
forthcoming.
2024-07-08 10:17:08 -04:00

43 lines
1.2 KiB
Lua

-- -----------------------------------------------------------------------------
-- -------------------------------- CodeSnap -----------------------------------
-- -----------------------------------------------------------------------------
return {
"mistricky/codesnap.nvim",
build = "make",
keys = {
{
"<leader>cy",
"<cmd>CodeSnap<cr>",
mode = "x",
desc = "󰹑 Save selected code snapshot into clipboard",
},
{
"<leader>cs",
"<cmd>CodeSnapSave<cr>",
mode = "x",
desc = "󰉏 Save selected code snapshot in ~/Pictures",
},
{
"<leader>ch",
"<cmd>CodeSnapHighlight<cr>",
mode = "x",
desc = " Highlight and snapshot selected code into clipboard",
},
{
"<leader>ci",
"<cmd>CodeSnapASCII<cr>",
mode = "x",
desc = " Save ASCII code snapshot into clipboard",
},
},
opts = {
save_path = "~/Pictures/Screenshots/",
has_breadcrumbs = true,
show_workspace = true,
--has_line_number = true,
bg_theme = "default",
watermark = "Rootiest Snippets",
code_font_family = "CaskaydiaCove NF",
code_font_size = 12,
},
}