mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
40 lines
933 B
Nix
40 lines
933 B
Nix
{ pkgs, ... }:
|
|
{
|
|
empty = {
|
|
plugins.clipboard-image = {
|
|
enable = true;
|
|
clipboardPackage = null;
|
|
};
|
|
};
|
|
|
|
example = {
|
|
plugins.clipboard-image = {
|
|
enable = true;
|
|
|
|
clipboardPackage = pkgs.wl-clipboard;
|
|
settings = {
|
|
default = {
|
|
img_dir = "img";
|
|
img_dir_txt = "img";
|
|
img_name.__raw = "function() return os.date('%Y-%m-%d-%H-%M-%S') end";
|
|
img_handler.__raw = "function(img) end";
|
|
affix = "";
|
|
};
|
|
markdown = {
|
|
img_dir = [
|
|
"src"
|
|
"assets"
|
|
"img"
|
|
];
|
|
img_dir_txt = "/assets/img";
|
|
img_handler.__raw = ''
|
|
function(img) -- New feature from PR #22
|
|
local script = string.format('./image_compressor.sh "%s"', img.path)
|
|
os.execute(script)
|
|
end
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|