lib/neovim-plugin: support lazy loading luaConfig.content

This commit is contained in:
Austin Horstman 2024-10-11 21:34:28 -05:00
parent 2e30f4828d
commit 301868d380
No known key found for this signature in database
2 changed files with 59 additions and 1 deletions

View file

@ -0,0 +1,34 @@
{
lazy-load-plugin =
{ config, ... }:
{
plugins = {
lz-n = {
enable = true;
plugins = [
{
__unkeyed-1 = "neotest";
after.__raw = ''
function()
${config.plugins.neotest.luaConfig.content}
end
'';
keys = [
{
__unkeyed-1 = "<leader>nt";
__unkeyed-3 = "<CMD>Neotest summary<CR>";
desc = "Summary toggle";
}
];
}
];
};
neotest = {
enable = true;
lazyLoad.enable = true;
};
};
};
}