formatting
This commit is contained in:
parent
5f7df2f263
commit
b8cea0f31e
1 changed files with 22 additions and 21 deletions
|
|
@ -10,29 +10,30 @@
|
|||
| (_) \__ \ |_) | | | | | || (_| | __/\ 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";
|
||||
};
|
||||
# this items and content_hooks are copied from khanelivim config
|
||||
# but i want to understand them
|
||||
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')";
|
||||
};
|
||||
};
|
||||
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