mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-01-19 08:22:25 +00:00
mini/starter: init
This commit is contained in:
parent
52bc5f23ee
commit
f7abf7577c
7 changed files with 62 additions and 0 deletions
|
@ -87,6 +87,7 @@
|
|||
- `mini.sessions`
|
||||
- `mini.snippets`
|
||||
- `mini.splitjoin`
|
||||
- `mini.starter`
|
||||
|
||||
[kaktu5](https://github.com/kaktu5):
|
||||
|
||||
|
|
17
flake.lock
17
flake.lock
|
@ -1464,6 +1464,22 @@
|
|||
"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": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
|
@ -2693,6 +2709,7 @@
|
|||
"plugin-mini-sessions": "plugin-mini-sessions",
|
||||
"plugin-mini-snippets": "plugin-mini-snippets",
|
||||
"plugin-mini-splitjoin": "plugin-mini-splitjoin",
|
||||
"plugin-mini-starter": "plugin-mini-starter",
|
||||
"plugin-minimap-vim": "plugin-minimap-vim",
|
||||
"plugin-modes-nvim": "plugin-modes-nvim",
|
||||
"plugin-neo-tree-nvim": "plugin-neo-tree-nvim",
|
||||
|
|
|
@ -910,5 +910,10 @@
|
|||
url = "github:echasnovski/mini.splitjoin";
|
||||
flake = false;
|
||||
};
|
||||
|
||||
plugin-mini-starter = {
|
||||
url = "github:echasnovski/mini.starter";
|
||||
flake = false;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -33,5 +33,6 @@
|
|||
./sessions
|
||||
./snippets
|
||||
./splitjoin
|
||||
./starter
|
||||
];
|
||||
}
|
||||
|
|
19
modules/plugins/mini/starter/config.nix
Normal file
19
modules/plugins/mini/starter/config.nix
Normal 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})
|
||||
'';
|
||||
};
|
||||
}
|
6
modules/plugins/mini/starter/default.nix
Normal file
6
modules/plugins/mini/starter/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./starter.nix
|
||||
./config.nix
|
||||
];
|
||||
}
|
13
modules/plugins/mini/starter/starter.nix
Normal file
13
modules/plugins/mini/starter/starter.nix
Normal 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" {};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue