mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-01-19 16:32:24 +00:00
mini/extra: init
This commit is contained in:
parent
753eb3e99d
commit
3533d5bcbd
7 changed files with 59 additions and 0 deletions
|
@ -67,6 +67,7 @@
|
||||||
- `mini.completion`
|
- `mini.completion`
|
||||||
- `mini.diff`
|
- `mini.diff`
|
||||||
- `mini.doc`
|
- `mini.doc`
|
||||||
|
- `mini.extra`
|
||||||
|
|
||||||
[kaktu5](https://github.com/kaktu5):
|
[kaktu5](https://github.com/kaktu5):
|
||||||
|
|
||||||
|
|
17
flake.lock
17
flake.lock
|
@ -1144,6 +1144,22 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"plugin-mini-extra": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1736279066,
|
||||||
|
"narHash": "sha256-lUJrviUjAmJ70g2y93aNw3e1mHGHoB9lbh44HGP7zQs=",
|
||||||
|
"owner": "echasnovski",
|
||||||
|
"repo": "mini.extra",
|
||||||
|
"rev": "477e3dda7b597b49bc1373951ea7da4da834c352",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "echasnovski",
|
||||||
|
"repo": "mini.extra",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"plugin-minimap-vim": {
|
"plugin-minimap-vim": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
|
@ -2353,6 +2369,7 @@
|
||||||
"plugin-mini-completion": "plugin-mini-completion",
|
"plugin-mini-completion": "plugin-mini-completion",
|
||||||
"plugin-mini-diff": "plugin-mini-diff",
|
"plugin-mini-diff": "plugin-mini-diff",
|
||||||
"plugin-mini-doc": "plugin-mini-doc",
|
"plugin-mini-doc": "plugin-mini-doc",
|
||||||
|
"plugin-mini-extra": "plugin-mini-extra",
|
||||||
"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",
|
||||||
|
|
|
@ -810,5 +810,10 @@
|
||||||
url = "github:echasnovski/mini.doc";
|
url = "github:echasnovski/mini.doc";
|
||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
plugin-mini-extra = {
|
||||||
|
url = "github:echasnovski/mini.extra";
|
||||||
|
flake = false;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,5 +13,6 @@
|
||||||
./completion
|
./completion
|
||||||
./diff
|
./diff
|
||||||
./doc
|
./doc
|
||||||
|
./extra
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
18
modules/plugins/mini/extra/config.nix
Normal file
18
modules/plugins/mini/extra/config.nix
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib.modules) mkIf;
|
||||||
|
inherit (lib.nvim.dag) entryAnywhere;
|
||||||
|
|
||||||
|
cfg = config.vim.mini.extra;
|
||||||
|
in {
|
||||||
|
vim = mkIf cfg.enable {
|
||||||
|
startPlugins = ["mini-extra"];
|
||||||
|
|
||||||
|
pluginRC.mini-extra = entryAnywhere ''
|
||||||
|
require("mini.extra").setup()
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
6
modules/plugins/mini/extra/default.nix
Normal file
6
modules/plugins/mini/extra/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./extra.nix
|
||||||
|
./config.nix
|
||||||
|
];
|
||||||
|
}
|
11
modules/plugins/mini/extra/extra.nix
Normal file
11
modules/plugins/mini/extra/extra.nix
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib.options) mkEnableOption mkOption;
|
||||||
|
in {
|
||||||
|
options.vim.mini.extra = {
|
||||||
|
enable = mkEnableOption "mini.extra";
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue