plugins/lzn-auto-require: init

This commit is contained in:
Axel Karjalainen 2025-06-10 01:23:43 +03:00 committed by Austin Horstman
parent e7e6cfd32b
commit 175b7a47de
2 changed files with 44 additions and 0 deletions

View file

@ -0,0 +1,28 @@
{
e2e =
{ lib, ... }:
{
plugins.lz-n.enable = true;
plugins.lzn-auto-require.enable = true;
plugins.smart-splits = {
enable = true;
lazyLoad.settings.lazy = true; # manual lazy-loading
};
extraConfigLuaPost = lib.mkMerge [
(lib.mkOrder 4999 ''
local success, _ = pcall(require, 'smart-splits')
if success then
print("require should not succeed")
end
'')
(lib.mkOrder 5001 ''
local success, _ = pcall(require, 'smart-splits')
if not success then
print("require should succeed")
end
'')
];
};
}