diff --git a/docs/release-notes/rl-0.8.md b/docs/release-notes/rl-0.8.md index 003c2639..800720f6 100644 --- a/docs/release-notes/rl-0.8.md +++ b/docs/release-notes/rl-0.8.md @@ -83,6 +83,7 @@ - `mini.notify` - `mini.operators` - `mini.pairs` + - `mini.pick` [kaktu5](https://github.com/kaktu5): diff --git a/flake.lock b/flake.lock index 2f01ce02..51932306 100644 --- a/flake.lock +++ b/flake.lock @@ -1400,6 +1400,22 @@ "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": { "flake": false, "locked": { @@ -2625,6 +2641,7 @@ "plugin-mini-notify": "plugin-mini-notify", "plugin-mini-operators": "plugin-mini-operators", "plugin-mini-pairs": "plugin-mini-pairs", + "plugin-mini-pick": "plugin-mini-pick", "plugin-minimap-vim": "plugin-minimap-vim", "plugin-modes-nvim": "plugin-modes-nvim", "plugin-neo-tree-nvim": "plugin-neo-tree-nvim", diff --git a/flake.nix b/flake.nix index 01836677..f6fec140 100644 --- a/flake.nix +++ b/flake.nix @@ -890,5 +890,10 @@ url = "github:echasnovski/mini.pairs"; flake = false; }; + + plugin-mini-pick = { + url = "github:echasnovski/mini.pick"; + flake = false; + }; }; } diff --git a/modules/plugins/mini/default.nix b/modules/plugins/mini/default.nix index 161ae000..97607284 100644 --- a/modules/plugins/mini/default.nix +++ b/modules/plugins/mini/default.nix @@ -29,5 +29,6 @@ ./notify ./operators ./pairs + ./pick ]; } diff --git a/modules/plugins/mini/pick/config.nix b/modules/plugins/mini/pick/config.nix new file mode 100644 index 00000000..6d82a8ea --- /dev/null +++ b/modules/plugins/mini/pick/config.nix @@ -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}) + ''; + }; +} diff --git a/modules/plugins/mini/pick/default.nix b/modules/plugins/mini/pick/default.nix new file mode 100644 index 00000000..37d1760c --- /dev/null +++ b/modules/plugins/mini/pick/default.nix @@ -0,0 +1,6 @@ +{ + imports = [ + ./pick.nix + ./config.nix + ]; +} diff --git a/modules/plugins/mini/pick/pick.nix b/modules/plugins/mini/pick/pick.nix new file mode 100644 index 00000000..8f93ac35 --- /dev/null +++ b/modules/plugins/mini/pick/pick.nix @@ -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" {}; + }; +}