From 6635837ab998e1616e2a2278137da6a5951cf499 Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Mon, 2 Dec 2024 13:50:48 -0600 Subject: [PATCH] WIP --- tests/test-sources/plugins/lazy-load.nix | 61 +++++++++++++++++++++++- 1 file changed, 60 insertions(+), 1 deletion(-) diff --git a/tests/test-sources/plugins/lazy-load.nix b/tests/test-sources/plugins/lazy-load.nix index 74f5da92bb..a71fed2e56 100644 --- a/tests/test-sources/plugins/lazy-load.nix +++ b/tests/test-sources/plugins/lazy-load.nix @@ -1,5 +1,5 @@ { - lazy-load-plugin = + lazy-load-neovim-plugin = { config, ... }: { plugins = { @@ -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 = "cc"; + __unkeyed-3 = "CodeSnap"; + desc = "Copy"; + mode = "v"; + } + { + __unkeyed-1 = "cs"; + __unkeyed-3 = "CodeSnapSave"; + desc = "Save"; + mode = "v"; + } + { + __unkeyed-1 = "ch"; + __unkeyed-3 = "CodeSnapHighlight"; + desc = "Highlight"; + mode = "v"; + } + { + __unkeyed-1 = "cH"; + __unkeyed-3 = "CodeSnapSaveHighlight"; + desc = "Save Highlight"; + mode = "v"; + } + ]; + } + ]; + }; + }; + # TODO: assert config exists how we expect }; }