mini/starter: init

This commit is contained in:
LilleAila 2025-01-17 21:13:58 +01:00
parent 52bc5f23ee
commit f7abf7577c
No known key found for this signature in database
GPG key ID: D1ACCDCF2B9B9799
7 changed files with 62 additions and 0 deletions

View file

@ -87,6 +87,7 @@
- `mini.sessions` - `mini.sessions`
- `mini.snippets` - `mini.snippets`
- `mini.splitjoin` - `mini.splitjoin`
- `mini.starter`
[kaktu5](https://github.com/kaktu5): [kaktu5](https://github.com/kaktu5):

View file

@ -1464,6 +1464,22 @@
"type": "github" "type": "github"
} }
}, },
"plugin-mini-starter": {
"flake": false,
"locked": {
"lastModified": 1736858747,
"narHash": "sha256-pJYkZUo+L3IeGCRdTipqTzMv+HatpNnyRxshaygKtIw=",
"owner": "echasnovski",
"repo": "mini.starter",
"rev": "4b257cfc93241e8c8cde3f9302d1616ad4e0d036",
"type": "github"
},
"original": {
"owner": "echasnovski",
"repo": "mini.starter",
"type": "github"
}
},
"plugin-minimap-vim": { "plugin-minimap-vim": {
"flake": false, "flake": false,
"locked": { "locked": {
@ -2693,6 +2709,7 @@
"plugin-mini-sessions": "plugin-mini-sessions", "plugin-mini-sessions": "plugin-mini-sessions",
"plugin-mini-snippets": "plugin-mini-snippets", "plugin-mini-snippets": "plugin-mini-snippets",
"plugin-mini-splitjoin": "plugin-mini-splitjoin", "plugin-mini-splitjoin": "plugin-mini-splitjoin",
"plugin-mini-starter": "plugin-mini-starter",
"plugin-minimap-vim": "plugin-minimap-vim", "plugin-minimap-vim": "plugin-minimap-vim",
"plugin-modes-nvim": "plugin-modes-nvim", "plugin-modes-nvim": "plugin-modes-nvim",
"plugin-neo-tree-nvim": "plugin-neo-tree-nvim", "plugin-neo-tree-nvim": "plugin-neo-tree-nvim",

View file

@ -910,5 +910,10 @@
url = "github:echasnovski/mini.splitjoin"; url = "github:echasnovski/mini.splitjoin";
flake = false; flake = false;
}; };
plugin-mini-starter = {
url = "github:echasnovski/mini.starter";
flake = false;
};
}; };
} }

View file

@ -33,5 +33,6 @@
./sessions ./sessions
./snippets ./snippets
./splitjoin ./splitjoin
./starter
]; ];
} }

View file

@ -0,0 +1,19 @@
{
config,
lib,
...
}: let
inherit (lib.modules) mkIf;
inherit (lib.nvim.dag) entryAnywhere;
inherit (lib.nvim.lua) toLuaObject;
cfg = config.vim.mini.starter;
in {
vim = mkIf cfg.enable {
startPlugins = ["mini-starter"];
pluginRC.mini-starter = entryAnywhere ''
require("mini.starter").setup(${toLuaObject cfg.setupOpts})
'';
};
}

View file

@ -0,0 +1,6 @@
{
imports = [
./starter.nix
./config.nix
];
}

View file

@ -0,0 +1,13 @@
{
config,
lib,
...
}: let
inherit (lib.options) mkEnableOption mkOption;
inherit (lib.nvim.types) mkPluginSetupOption;
in {
options.vim.mini.starter = {
enable = mkEnableOption "mini.starter";
setupOpts = mkPluginSetupOption "mini.starter" {};
};
}