Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
khaneliman committed Dec 2, 2024
1 parent 7c1e324 commit 6635837
Showing 1 changed file with 60 additions and 1 deletion.
61 changes: 60 additions & 1 deletion tests/test-sources/plugins/lazy-load.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
lazy-load-plugin =
lazy-load-neovim-plugin =
{ config, ... }:
{
plugins = {
Expand All @@ -22,5 +22,64 @@
};
};
};

# TODO: assert config exists how we expect
};

lazy-load-lz-n =
{ config, ... }:
{
plugins = {
codesnap = {
enable = true;
lazyLoad.enable = true;
};
lz-n = {
enable = true;
plugins = [
{
__unkeyed-1 = "codesnap";
after.__raw = ''
function()
${config.plugins.codesnap.luaConfig.content}
end
'';
cmd = [
"CodeSnap"
"CodeSnapSave"
"CodeSnapHighlight"
"CodeSnapSaveHighlight"
];
keys = [
{
__unkeyed-1 = "<leader>cc";
__unkeyed-3 = "<cmd>CodeSnap<CR>";
desc = "Copy";
mode = "v";
}
{
__unkeyed-1 = "<leader>cs";
__unkeyed-3 = "<cmd>CodeSnapSave<CR>";
desc = "Save";
mode = "v";
}
{
__unkeyed-1 = "<leader>ch";
__unkeyed-3 = "<cmd>CodeSnapHighlight<CR>";
desc = "Highlight";
mode = "v";
}
{
__unkeyed-1 = "<leader>cH";
__unkeyed-3 = "<cmd>CodeSnapSaveHighlight<CR>";
desc = "Save Highlight";
mode = "v";
}
];
}
];
};
};
# TODO: assert config exists how we expect
};
}

0 comments on commit 6635837

Please sign in to comment.