1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-08 19:46:06 +01:00

plugins/img-clip: init

Signed-off-by: saygo-png <saygo.mail@proton.me>
This commit is contained in:
saygo-png 2025-07-16 21:19:44 +02:00 committed by Austin Horstman
parent 7ad0cadd8b
commit bc0555c869
2 changed files with 48 additions and 0 deletions

View file

@ -0,0 +1,23 @@
{ lib, ... }:
lib.nixvim.plugins.mkNeovimPlugin {
name = "img-clip";
packPathName = "img-clip.nvim";
package = "img-clip-nvim";
description = "Embed images into any markup language, like LaTeX, Markdown or Typst";
maintainers = [ lib.maintainers.saygo-png ];
settingsExample = {
default = {
dir_path = "assets";
file_name = "%y-%m-%d-%h-%m-%s";
use_absolute_path = false;
relative_to_current_file = false;
template = "$file_path";
};
filetypes = {
markdown = {
download_images = true;
};
};
};
}

View file

@ -0,0 +1,25 @@
{
empty = {
plugins.img-clip.enable = true;
};
example = {
plugins.img-clip = {
enable = true;
settings = {
default = {
dir_path = "assets";
file_name = "%y-%m-%d-%h-%m-%s";
use_absolute_path = false;
relative_to_current_file = false;
template = "$file_path";
};
filetypes = {
markdown = {
download_images = true;
};
};
};
};
};
}