mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
plugins/lzn-auto-require: init
This commit is contained in:
parent
95573411bc
commit
06be37fc0b
2 changed files with 37 additions and 0 deletions
9
plugins/by-name/lzn-auto-require/default.nix
Normal file
9
plugins/by-name/lzn-auto-require/default.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{ lib, ... }:
|
||||
lib.nixvim.plugins.mkNeovimPlugin {
|
||||
name = "lzn-auto-require";
|
||||
|
||||
setup = ".enable";
|
||||
configLocation = lib.mkAfter "extraConfigLuaPost"; # Register after everything to catch mistates
|
||||
|
||||
maintainers = [ lib.maintainers.axka ];
|
||||
}
|
|
@ -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 1499 ''
|
||||
local success, _ = pcall(require, 'smart-splits')
|
||||
if success then
|
||||
print("require should not succeed")
|
||||
end
|
||||
'')
|
||||
(lib.mkOrder 1501 ''
|
||||
local success, _ = pcall(require, 'smart-splits')
|
||||
if not success then
|
||||
print("require should succeed")
|
||||
end
|
||||
'')
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue