mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-07 09:31:04 +01:00
yazi: support plugins and flavors
This commit is contained in:
parent
a9b36cbe92
commit
04bc391a90
5 changed files with 64 additions and 8 deletions
1
tests/modules/programs/yazi/flavor/init.lua
Normal file
1
tests/modules/programs/yazi/flavor/init.lua
Normal file
|
|
@ -0,0 +1 @@
|
|||
-- This is a flavor.
|
||||
3
tests/modules/programs/yazi/init.lua
Normal file
3
tests/modules/programs/yazi/init.lua
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
require("zoxide"):setup {
|
||||
update_db = true,
|
||||
}
|
||||
1
tests/modules/programs/yazi/plugin/init.lua
Normal file
1
tests/modules/programs/yazi/plugin/init.lua
Normal file
|
|
@ -0,0 +1 @@
|
|||
-- This is a plugin.
|
||||
|
|
@ -69,6 +69,9 @@
|
|||
];
|
||||
};
|
||||
};
|
||||
initLua = ./init.lua;
|
||||
plugins = { "test.yazi" = ./plugin; };
|
||||
flavors = { "test.yazi" = ./flavor; };
|
||||
};
|
||||
|
||||
test.stubs.yazi = { };
|
||||
|
|
@ -80,5 +83,11 @@
|
|||
${./settings-expected.toml}
|
||||
assertFileContent home-files/.config/yazi/theme.toml \
|
||||
${./theme-expected.toml}
|
||||
assertFileContent home-files/.config/yazi/init.lua \
|
||||
${./init.lua}
|
||||
assertFileContent home-files/.config/yazi/plugins/test.yazi/init.lua \
|
||||
${./plugin/init.lua}
|
||||
assertFileContent home-files/.config/yazi/flavors/test.yazi/init.lua \
|
||||
${./flavor/init.lua}
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue