1- *freeze-code.nvim.txt* For Neovim >= 0.8.0 Last change: 2024 May 12
1+ *freeze-code.nvim.txt* For Neovim >= 0.8.0 Last change: 2024 May 14
22
33==============================================================================
44Table of Contents *freeze-code.nvim-table-of-contents*
@@ -14,6 +14,14 @@ INSTALLATION *freeze-code.nvim-installation*
1414Using your plugin manager at your disposal, in the example lazy
1515<https://github.com/folke/lazy.nvim > is going to be used.
1616
17+
18+ [!note]
19+ If you don’t have freeze <https://github.com/charmbracelet/freeze > installed,
20+ and you are have golang <https://go.dev > installed, it will `go install
21+ github.com/charmbracelet/freeze@latest` for you.
22+ In the case that you don’t have neither of those, don’t you worry , we got
23+ you cover. It will install `freeze` using `cURL` to the freeze’s releases
24+ page <https://github.com/charmbracelet/freeze/releases >.
1725- Default installation:
1826
1927>lua
@@ -25,6 +33,12 @@ Using your plugin manager at your disposal, in the example lazy
2533 }
2634<
2735
36+
37+ [!note]
38+ You can also install it using Rocks.nvim
39+ <https://github.com/nvim-neorocks/rocks.nvim >
40+ `:Rocks install freeze-code.nvim`
41+ Also as `luarocks install freeze-code.nvim`
2842- Customizable installation:
2943
3044>lua
@@ -41,27 +55,13 @@ Using your plugin manager at your disposal, in the example lazy
4155
4256 [!note] See default configuration below.
4357>lua
44- ---@class FreezeConfig
45- ---@field output string|"freeze.png": Freeze output filename `--output "freeze.png"`
46- ---@field theme string|"default": Freeze theme `--theme "default"`
47- ---@field config string|"base": Freeze configuration `--config "base"`
48-
49- ---@class CodeSnapshotConfig
50- ---@field freeze_path string: Path to `freeze` executable
51- ---@field copy_cmd string: Path to copy `image/png` to clipboard command
52- ---@field copy boolean: Open image after creation option
53- ---@field open boolean: Open image after creation option
54- ---@field dir string: Directory to create image
55- ---@field freeze_config FreezeConfig
56-
57- ---@type CodeSnapshotConfig
5858 local opts = {
5959 freeze_path = vim.fn.exepath("freeze"), -- where is freeze installed
6060 copy_cmd = "pngcopy", -- the default copy commands are in the bin directory
61- copy = false,
62- open = false,
63- dir = vim.env.PWD,
64- freeze_config = {
61+ copy = false, -- copy after screenshot option
62+ open = false, -- open after screenshot option
63+ dir = vim.env.PWD, -- where is the image going to be saved "." as default
64+ freeze_config = { -- configuration options for `freeze` command
6565 output = "freeze.png",
6666 config = "base",
6767 theme = "default",
0 commit comments