mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-01-19 16:32:24 +00:00
mini/pick: init
This commit is contained in:
parent
226c25d45d
commit
af36e185b5
7 changed files with 62 additions and 0 deletions
|
@ -83,6 +83,7 @@
|
||||||
- `mini.notify`
|
- `mini.notify`
|
||||||
- `mini.operators`
|
- `mini.operators`
|
||||||
- `mini.pairs`
|
- `mini.pairs`
|
||||||
|
- `mini.pick`
|
||||||
|
|
||||||
[kaktu5](https://github.com/kaktu5):
|
[kaktu5](https://github.com/kaktu5):
|
||||||
|
|
||||||
|
|
17
flake.lock
17
flake.lock
|
@ -1400,6 +1400,22 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"plugin-mini-pick": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1736696004,
|
||||||
|
"narHash": "sha256-Q4GD0WzUYNtoBMx8pIl6fX5glKn1oflS4HZVC+w/eAM=",
|
||||||
|
"owner": "echasnovski",
|
||||||
|
"repo": "mini.pick",
|
||||||
|
"rev": "09ade94d2c9c5133db9ae00f3693d82eae78e9be",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "echasnovski",
|
||||||
|
"repo": "mini.pick",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"plugin-minimap-vim": {
|
"plugin-minimap-vim": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
|
@ -2625,6 +2641,7 @@
|
||||||
"plugin-mini-notify": "plugin-mini-notify",
|
"plugin-mini-notify": "plugin-mini-notify",
|
||||||
"plugin-mini-operators": "plugin-mini-operators",
|
"plugin-mini-operators": "plugin-mini-operators",
|
||||||
"plugin-mini-pairs": "plugin-mini-pairs",
|
"plugin-mini-pairs": "plugin-mini-pairs",
|
||||||
|
"plugin-mini-pick": "plugin-mini-pick",
|
||||||
"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",
|
||||||
|
|
|
@ -890,5 +890,10 @@
|
||||||
url = "github:echasnovski/mini.pairs";
|
url = "github:echasnovski/mini.pairs";
|
||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
plugin-mini-pick = {
|
||||||
|
url = "github:echasnovski/mini.pick";
|
||||||
|
flake = false;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,5 +29,6 @@
|
||||||
./notify
|
./notify
|
||||||
./operators
|
./operators
|
||||||
./pairs
|
./pairs
|
||||||
|
./pick
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
19
modules/plugins/mini/pick/config.nix
Normal file
19
modules/plugins/mini/pick/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.pick;
|
||||||
|
in {
|
||||||
|
vim = mkIf cfg.enable {
|
||||||
|
startPlugins = ["mini-pick"];
|
||||||
|
|
||||||
|
pluginRC.mini-pick = entryAnywhere ''
|
||||||
|
require("mini.pick").setup(${toLuaObject cfg.setupOpts})
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
6
modules/plugins/mini/pick/default.nix
Normal file
6
modules/plugins/mini/pick/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./pick.nix
|
||||||
|
./config.nix
|
||||||
|
];
|
||||||
|
}
|
13
modules/plugins/mini/pick/pick.nix
Normal file
13
modules/plugins/mini/pick/pick.nix
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib.options) mkEnableOption mkOption;
|
||||||
|
inherit (lib.nvim.types) mkPluginSetupOption;
|
||||||
|
in {
|
||||||
|
options.vim.mini.pick = {
|
||||||
|
enable = mkEnableOption "mini.pick";
|
||||||
|
setupOpts = mkPluginSetupOption "mini.pick" {};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue