mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
plugins/mini-starter: init
This commit is contained in:
parent
2c0a9ff1e2
commit
5602b0acb4
2 changed files with 68 additions and 0 deletions
34
plugins/by-name/mini-starter/default.nix
Normal file
34
plugins/by-name/mini-starter/default.nix
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
{ lib, ... }:
|
||||||
|
let
|
||||||
|
inherit (lib.nixvim) nestedLiteralLua;
|
||||||
|
in
|
||||||
|
lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
name = "mini-starter";
|
||||||
|
moduleName = "mini.starter";
|
||||||
|
packPathName = "mini.starter";
|
||||||
|
|
||||||
|
maintainers = [ lib.maintainers.HeitorAugustoLN ];
|
||||||
|
|
||||||
|
settingsExample = {
|
||||||
|
autoopen = true;
|
||||||
|
content_hooks = [
|
||||||
|
(nestedLiteralLua "require(\"mini.starter\").gen_hook.adding_bullet()")
|
||||||
|
(nestedLiteralLua "require(\"mini.starter\").gen_hook.indexing('all', { 'Builtin actions' })")
|
||||||
|
(nestedLiteralLua "require(\"mini.starter\").gen_hook.aligning('center', 'center')")
|
||||||
|
];
|
||||||
|
evaluate_single = true;
|
||||||
|
header = ''
|
||||||
|
███╗ ██╗██╗██╗ ██╗██╗ ██╗██╗███╗ ███╗
|
||||||
|
████╗ ██║██║╚██╗██╔╝██║ ██║██║████╗ ████║
|
||||||
|
██╔██╗ ██║██║ ╚███╔╝ ██║ ██║██║██╔████╔██║
|
||||||
|
██║╚██╗██║██║ ██╔██╗ ╚██╗ ██╔╝██║██║╚██╔╝██║
|
||||||
|
██║ ╚████║██║██╔╝ ██╗ ╚████╔╝ ██║██║ ╚═╝ ██║
|
||||||
|
'';
|
||||||
|
items = [
|
||||||
|
(nestedLiteralLua "require(\"mini.starter\").sections.builtin_actions()")
|
||||||
|
(nestedLiteralLua "require(\"mini.starter\").sections.recent_files(10, false)")
|
||||||
|
(nestedLiteralLua "require(\"mini.starter\").sections.recent_files(10, true)")
|
||||||
|
(nestedLiteralLua "require(\"mini.starter\").sections.sessions(5, true)")
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
34
tests/test-sources/plugins/by-name/mini-starter/default.nix
Normal file
34
tests/test-sources/plugins/by-name/mini-starter/default.nix
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
{ lib, ... }:
|
||||||
|
{
|
||||||
|
empty = {
|
||||||
|
plugins.mini-starter.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
example = {
|
||||||
|
plugins.mini-starter = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
autoopen = true;
|
||||||
|
content_hooks = [
|
||||||
|
(lib.nixvim.mkRaw "require(\"mini.starter\").gen_hook.adding_bullet()")
|
||||||
|
(lib.nixvim.mkRaw "require(\"mini.starter\").gen_hook.indexing('all', { 'Builtin actions' })")
|
||||||
|
(lib.nixvim.mkRaw "require(\"mini.starter\").gen_hook.aligning('center', 'center')")
|
||||||
|
];
|
||||||
|
evaluate_single = true;
|
||||||
|
header = ''
|
||||||
|
███╗ ██╗██╗██╗ ██╗██╗ ██╗██╗███╗ ███╗
|
||||||
|
████╗ ██║██║╚██╗██╔╝██║ ██║██║████╗ ████║
|
||||||
|
██╔██╗ ██║██║ ╚███╔╝ ██║ ██║██║██╔████╔██║
|
||||||
|
██║╚██╗██║██║ ██╔██╗ ╚██╗ ██╔╝██║██║╚██╔╝██║
|
||||||
|
██║ ╚████║██║██╔╝ ██╗ ╚████╔╝ ██║██║ ╚═╝ ██║
|
||||||
|
'';
|
||||||
|
items = [
|
||||||
|
(lib.nixvim.mkRaw "require(\"mini.starter\").sections.builtin_actions()")
|
||||||
|
(lib.nixvim.mkRaw "require(\"mini.starter\").sections.recent_files(10, false)")
|
||||||
|
(lib.nixvim.mkRaw "require(\"mini.starter\").sections.recent_files(10, true)")
|
||||||
|
(lib.nixvim.mkRaw "require(\"mini.starter\").sections.sessions(5, true)")
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue