-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(config): move mini plugin configuration to separate file
- Extract mini plugin configuration into dedicated mini.nix file - Add starter module configuration with custom header and sections - Remove mini plugin config from codecompanion.nix
- Loading branch information
1 parent
cd500c8
commit ac93bc4
Showing
3 changed files
with
42 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
plugins.mini = { | ||
enable = true; | ||
modules.diff.options.view.style = "sign"; | ||
modules.starter = { | ||
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')"; | ||
}; | ||
}; | ||
evaluate_single = true; | ||
header = '' | ||
▀█▀ █▀▀ █ █ █▀█ | ||
█ █ █▀█ █ █ | ||
▀▀▀ ▀▀▀ ▀ ▀ ▀▀▀ | ||
''; | ||
items = { | ||
"__unkeyed-1.buildtin_actions" = { | ||
__raw = "require('mini.starter').sections.builtin_actions()"; | ||
}; | ||
"__unkeyed-2.recent_files_current_directory" = { | ||
__raw = "require('mini.starter').sections.recent_files(10, false)"; | ||
}; | ||
"__unkeyed-3.recent_files" = { | ||
__raw = "require('mini.starter').sections.recent_files(10, true)"; | ||
}; | ||
"__unkeyed-4.sessions" = { | ||
__raw = "require('mini.starter').sections.sessions(5, true)"; | ||
}; | ||
}; | ||
}; | ||
}; | ||
} |