diff --git a/docs/release-notes/rl-0.8.md b/docs/release-notes/rl-0.8.md index 5624aa07..559c4c4b 100644 --- a/docs/release-notes/rl-0.8.md +++ b/docs/release-notes/rl-0.8.md @@ -61,6 +61,7 @@ - `mini.basics` - `mini.bracketed` - `mini.bufremove` + - `mini.clue` [kaktu5](https://github.com/kaktu5): diff --git a/flake.lock b/flake.lock index d5305234..238f06b8 100644 --- a/flake.lock +++ b/flake.lock @@ -1048,6 +1048,22 @@ "type": "github" } }, + "plugin-mini-clue": { + "flake": false, + "locked": { + "lastModified": 1737130586, + "narHash": "sha256-/0DpZV/jXuhaqBz5j4JN3xmofATlwPMHNSm/uTXALg0=", + "owner": "echasnovski", + "repo": "mini.clue", + "rev": "63e42dad781b9ed4845d90ef1da8c52dfb6dce3f", + "type": "github" + }, + "original": { + "owner": "echasnovski", + "repo": "mini.clue", + "type": "github" + } + }, "plugin-minimap-vim": { "flake": false, "locked": { @@ -2251,6 +2267,7 @@ "plugin-mini-basics": "plugin-mini-basics", "plugin-mini-bracketed": "plugin-mini-bracketed", "plugin-mini-bufremove": "plugin-mini-bufremove", + "plugin-mini-clue": "plugin-mini-clue", "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 01f9bead..b88b9d8a 100644 --- a/flake.nix +++ b/flake.nix @@ -780,5 +780,10 @@ url = "github:echasnovski/mini.bufremove"; flake = false; }; + + plugin-mini-clue = { + url = "github:echasnovski/mini.clue"; + flake = false; + }; }; } diff --git a/modules/plugins/mini/clue/clue.nix b/modules/plugins/mini/clue/clue.nix new file mode 100644 index 00000000..de4cf2ee --- /dev/null +++ b/modules/plugins/mini/clue/clue.nix @@ -0,0 +1,13 @@ +{ + config, + lib, + ... +}: let + inherit (lib.options) mkEnableOption mkOption; + inherit (lib.nvim.types) mkPluginSetupOption; +in { + options.vim.mini.clue = { + enable = mkEnableOption "mini.clue"; + setupOpts = mkPluginSetupOption "mini.clue" {}; + }; +} diff --git a/modules/plugins/mini/clue/config.nix b/modules/plugins/mini/clue/config.nix new file mode 100644 index 00000000..efdc2946 --- /dev/null +++ b/modules/plugins/mini/clue/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.clue; +in { + vim = mkIf cfg.enable { + startPlugins = ["mini-clue"]; + + pluginRC.mini-clue = entryAnywhere '' + require("mini.clue").setup(${toLuaObject cfg.setupOpts}) + ''; + }; +} diff --git a/modules/plugins/mini/clue/default.nix b/modules/plugins/mini/clue/default.nix new file mode 100644 index 00000000..55ac57e7 --- /dev/null +++ b/modules/plugins/mini/clue/default.nix @@ -0,0 +1,6 @@ +{ + imports = [ + ./clue.nix + ./config.nix + ]; +} diff --git a/modules/plugins/mini/default.nix b/modules/plugins/mini/default.nix index da5ccb83..8c3a9a4a 100644 --- a/modules/plugins/mini/default.nix +++ b/modules/plugins/mini/default.nix @@ -7,5 +7,6 @@ ./basics ./bracketed ./bufremove + ./clue ]; }