mirror of
https://github.com/traxys/Nixfiles.git
synced 2026-02-13 19:00:19 +01:00
neovim: Add module for diagram-nvim
This commit is contained in:
parent
bf740f9298
commit
dd2de99e8c
3 changed files with 23 additions and 7 deletions
|
|
@ -14,6 +14,7 @@
|
|||
|
||||
./plugins/headerguard.nix
|
||||
./plugins/lsp-signature.nix
|
||||
./plugins/diagram-nvim.nix
|
||||
];
|
||||
|
||||
colorschemes.tokyonight = {
|
||||
|
|
|
|||
|
|
@ -45,18 +45,18 @@
|
|||
};
|
||||
};
|
||||
|
||||
extraConfigLua =
|
||||
let
|
||||
cfg.renderer_options = {
|
||||
plugins.diagram-nvim = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
renderer_options = {
|
||||
mermaid = {
|
||||
background = "transparent";
|
||||
theme = "dark";
|
||||
};
|
||||
};
|
||||
in
|
||||
''
|
||||
require('diagram').setup(${helpers.toLuaObject cfg})
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
extraPackages = with pkgs; [
|
||||
mermaid-cli
|
||||
|
|
|
|||
15
neovim/plugins/diagram-nvim.nix
Normal file
15
neovim/plugins/diagram-nvim.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
lib,
|
||||
helpers,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
helpers.neovim-plugin.mkNeovimPlugin config {
|
||||
name = "diagram-nvim";
|
||||
originalName = "diagram.nvim";
|
||||
luaName = "diagram";
|
||||
defaultPackage = pkgs.vimPlugins.diagram-nvim;
|
||||
|
||||
maintainers = [ lib.maintainers.traxys ];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue