@@ -79,9 +79,11 @@ See: [lazy.nvim](https://github.com/folke/lazy.nvim)
7979``` lua
8080{
8181 ' mistweaverco/snap.nvim' ,
82- version = ' v1.4.5' ,
82+ version = ' v1.5.0' ,
83+ cmd = " Snap" ,
8384 --- @type SnapUserConfig
8485 opts = {}
86+ event = " VeryLazy" ,
8587},
8688```
8789
@@ -95,7 +97,7 @@ See: [packer.nvim](https://github.com/wbthomason/packer.nvim)
9597``` lua
9698use {
9799 ' mistweaverco/snap.nvim' ,
98- tag = ' v1.4.5 ' ,
100+ tag = ' v1.5.0 ' ,
99101 config = function ()
100102
101103 --- @type SnapUserConfig
@@ -114,7 +116,7 @@ use {
114116``` lua
115117vim .pack .add ({
116118 src = ' https://github.com/mistweaverco/snap.nvim.git' ,
117- version = ' v1.4.5 ' ,
119+ version = ' v1.5.0 ' ,
118120})
119121--- @type SnapUserConfig
120122local cfg = {}
@@ -246,7 +248,7 @@ This would then translate to the following `font_settings`:
246248``` lua
247249return {
248250 " mistweaverco/snap.nvim" ,
249- version = ' v1.4.5 ' ,
251+ version = ' v1.5.0 ' ,
250252 --- @type SnapUserConfig
251253 opts = {
252254 template = " linux" ,
@@ -323,6 +325,17 @@ Optional. Defaults to `nil`.
323325Absolute path to a custom handlebars template file.
324326If set, this option overrides the ` template ` option.
325327
328+ ### Configure ` save_to_disk `
329+
330+ Optional. Defaults to:
331+
332+ ``` lua
333+ {
334+ image = true ,
335+ html = true ,
336+ }
337+ ```
338+
326339### Configure ` copy_to_clipboard `
327340
328341Optional. Defaults to:
@@ -375,7 +388,7 @@ by running `bun install` in the plugin directory.
375388``` lua
376389{
377390 ' mistweaverco/snap.nvim' ,
378- version = ' v1.4.5 ' ,
391+ version = ' v1.5.0 ' ,
379392 opts = {
380393 timeout = 5000 , -- Timeout for screenshot command in milliseconds
381394 log_level = " error" , -- Log level for debugging (e.g., "trace", "debug", "info", "warn", "error", "off")
@@ -388,6 +401,10 @@ by running `bun install` in the plugin directory.
388401 },
389402 output_dir = " $HOME/Pictures/Screenshots" , -- Directory to save screenshots
390403 filename_pattern = " snap.nvim_%t" , -- e.g., "snap.nvim_%t" (supports %t for timestamp)
404+ save_to_disk = {
405+ image = true , -- Whether to save the image to disk
406+ html = true , -- Whether to save the HTML to disk
407+ },
391408 copy_to_clipboard = {
392409 image = true , -- Whether to copy the image to clipboard
393410 html = true , -- Whether to copy the HTML to clipboard
0 commit comments