plugins/diagram: init

This commit is contained in:
Gaetan Lepage 2025-03-20 08:50:24 +01:00
parent ea6df31d30
commit 695add12fc
2 changed files with 105 additions and 0 deletions

View file

@ -0,0 +1,30 @@
{ lib, ... }:
lib.nixvim.plugins.mkNeovimPlugin {
name = "diagram";
packPathName = "diagram.nvim";
package = "diagram-nvim";
maintainers = [ lib.maintainers.GaetanLepage ];
settingsExample = {
integrations = [
{ __raw = "require('diagram.integrations.markdown')"; }
{ __raw = "require('diagram.integrations.neorg')"; }
];
renderer_options = {
mermaid = {
theme = "forest";
};
plantuml = {
charset = "utf-8";
};
d2 = {
theme_id = 1;
};
gnuplot = {
theme = "dark";
size = "800,600";
};
};
};
}