📸 Snapshot plugin that can make pretty code snapshots with real-time previews for Neovim
Note
This plugin is currently in its early stages and may have some bugs, please feel free to submit issues and PRs.
{ "mistricky/codesnap.nvim", build = "make" },
For take a screenshot, the codesnap.nvim
provides a command named CodeSnapPreviewOn
to open the preview page, and then you can switch to visual mode and select code you want, and finally just click the copy button on the preview page, that's all :)
CodeSnapPreviewOn # Open preview page -- The following commands are planned but not implemented yet. (welcome PR :)) CodeSnap # Take a code snap and copy it into the clipboard
Define your custom config using setup
function
require("codesnap").setup({...})
There is a default config:
{ mac_window_bar = true,-- (Optional) MacOS style title bar switch opacity = true, -- (Optional) The code snap has some opacity by default, set it to false for 100% opacity watermark = "CodeSnap.nvim", -- (Optional) you can custom your own watermark, but if you don't like it, just set it to "" preview_title = "CodeSnap.nvim", -- (Optional) preview page title editor_font_family = "CaskaydiaCove Nerd Font", -- (Optional) preview code font family watermark_font_family = "Pacifico", -- (Optional) watermark font family }
MIT.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4