add nix-inspect
This commit is contained in:
parent
39c7f5fcc2
commit
5f7df2f263
1 changed files with 23 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
{
|
{config, lib, ...}:{
|
||||||
plugins.mini = {
|
plugins.mini = {
|
||||||
enable = true;
|
enable = true;
|
||||||
modules = {
|
modules = {
|
||||||
|
|
@ -9,8 +9,29 @@
|
||||||
/ _ \/ __| '_ \| '_ ` _ \ / _` |/ _ \ \ / /
|
/ _ \/ __| '_ \| '_ ` _ \ / _` |/ _ \ \ / /
|
||||||
| (_) \__ \ |_) | | | | | || (_| | __/\ V /
|
| (_) \__ \ |_) | | | | | || (_| | __/\ V /
|
||||||
\___/|___/_.__/|_| |_| |_(_)__,_|\___| \_/
|
\___/|___/_.__/|_| |_| |_(_)__,_|\___| \_/
|
||||||
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
items = {
|
||||||
|
"__unkeyed-1.builtin_actions".__raw = "require('mini.starter').sections.builtin_actions()";
|
||||||
|
"__unkeyed-2.recent_files_current_directory".__raw =
|
||||||
|
"require('mini.starter').sections.recent_files(10, true)";
|
||||||
|
"__unkeyed-3.recent_files".__raw = "require('mini.starter').sections.recent_files(10, false)";
|
||||||
|
"__unkeyed-4.sessions".__raw = lib.mkIf (
|
||||||
|
config.plugins.mini.enable && lib.hasAttr "sessions" config.plugins.mini.modules
|
||||||
|
) "require('mini.starter').sections.sessions(5, true)";
|
||||||
|
__unkeyed-5 = lib.mkIf config.plugins.persistence.enable {
|
||||||
|
name = "Restore session";
|
||||||
|
action.__raw = "[[lua require('persistence').load()]]";
|
||||||
|
section = "Session";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
content_hooks = {
|
||||||
|
"__unkeyed-1.adding_bullet".__raw = "require('mini.starter').gen_hook.adding_bullet()";
|
||||||
|
"__unkeyed-2.indexing".__raw =
|
||||||
|
"require('mini.starter').gen_hook.indexing('all', { 'Builtin actions' })";
|
||||||
|
"__unkeyed-3.padding".__raw = "require('mini.starter').gen_hook.aligning('center', 'center')";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue