Skip to content

Commit bc0555c

Browse files
saygo-pngkhaneliman
authored andcommitted
plugins/img-clip: init
Signed-off-by: saygo-png <[email protected]>
1 parent 7ad0cad commit bc0555c

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

plugins/by-name/img-clip/default.nix

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{ lib, ... }:
2+
lib.nixvim.plugins.mkNeovimPlugin {
3+
name = "img-clip";
4+
packPathName = "img-clip.nvim";
5+
package = "img-clip-nvim";
6+
description = "Embed images into any markup language, like LaTeX, Markdown or Typst";
7+
maintainers = [ lib.maintainers.saygo-png ];
8+
9+
settingsExample = {
10+
default = {
11+
dir_path = "assets";
12+
file_name = "%y-%m-%d-%h-%m-%s";
13+
use_absolute_path = false;
14+
relative_to_current_file = false;
15+
template = "$file_path";
16+
};
17+
filetypes = {
18+
markdown = {
19+
download_images = true;
20+
};
21+
};
22+
};
23+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
empty = {
3+
plugins.img-clip.enable = true;
4+
};
5+
6+
example = {
7+
plugins.img-clip = {
8+
enable = true;
9+
settings = {
10+
default = {
11+
dir_path = "assets";
12+
file_name = "%y-%m-%d-%h-%m-%s";
13+
use_absolute_path = false;
14+
relative_to_current_file = false;
15+
template = "$file_path";
16+
};
17+
filetypes = {
18+
markdown = {
19+
download_images = true;
20+
};
21+
};
22+
};
23+
};
24+
};
25+
}

0 commit comments

Comments
 (0)