mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-18 17:54:36 +02:00
plugins/img-clip: init
Some checks failed
Publish every git push to Flakestry / publish-flake (push) Has been cancelled
Documentation / Version info (push) Has been cancelled
Publish every Git push to main to FlakeHub / flakehub-publish (push) Has been cancelled
Documentation / Build (push) Has been cancelled
Documentation / Combine builds (push) Has been cancelled
Documentation / Deploy (push) Has been cancelled
Some checks failed
Publish every git push to Flakestry / publish-flake (push) Has been cancelled
Documentation / Version info (push) Has been cancelled
Publish every Git push to main to FlakeHub / flakehub-publish (push) Has been cancelled
Documentation / Build (push) Has been cancelled
Documentation / Combine builds (push) Has been cancelled
Documentation / Deploy (push) Has been cancelled
Signed-off-by: saygo-png <saygo.mail@proton.me>
This commit is contained in:
parent
7ad0cadd8b
commit
bc0555c869
2 changed files with 48 additions and 0 deletions
23
plugins/by-name/img-clip/default.nix
Normal file
23
plugins/by-name/img-clip/default.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
25
tests/test-sources/plugins/by-name/img-clip/default.nix
Normal file
25
tests/test-sources/plugins/by-name/img-clip/default.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue