mini/jump: init

This commit is contained in:
LilleAila 2025-01-17 20:37:22 +01:00
parent be7d949605
commit 36f535c4ef
No known key found for this signature in database
GPG key ID: D1ACCDCF2B9B9799
7 changed files with 62 additions and 0 deletions

View file

@ -75,6 +75,7 @@
- `mini.hues`
- `mini.icons`
- `mini.indentscope`
- `mini.jump`
[kaktu5](https://github.com/kaktu5):

View file

@ -1272,6 +1272,22 @@
"type": "github"
}
},
"plugin-mini-jump": {
"flake": false,
"locked": {
"lastModified": 1733662809,
"narHash": "sha256-qMP9ezk4xZov5S4vrUFM62lnc4YkEaZL1EVzdXwDq1Q=",
"owner": "echasnovski",
"repo": "mini.jump",
"rev": "bb93d998c9db6936697746330411f5fb9957145e",
"type": "github"
},
"original": {
"owner": "echasnovski",
"repo": "mini.jump",
"type": "github"
}
},
"plugin-minimap-vim": {
"flake": false,
"locked": {
@ -2489,6 +2505,7 @@
"plugin-mini-hues": "plugin-mini-hues",
"plugin-mini-icons": "plugin-mini-icons",
"plugin-mini-indentscope": "plugin-mini-indentscope",
"plugin-mini-jump": "plugin-mini-jump",
"plugin-minimap-vim": "plugin-minimap-vim",
"plugin-modes-nvim": "plugin-modes-nvim",
"plugin-neo-tree-nvim": "plugin-neo-tree-nvim",

View file

@ -850,5 +850,10 @@
url = "github:echasnovski/mini.indentscope";
flake = false;
};
plugin-mini-jump = {
url = "github:echasnovski/mini.jump";
flake = false;
};
};
}

View file

@ -21,5 +21,6 @@
./hues
./icons
./indentscope
./jump
];
}

View 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.jump;
in {
vim = mkIf cfg.enable {
startPlugins = ["mini-jump"];
pluginRC.mini-jump = entryAnywhere ''
require("mini.jump").setup(${toLuaObject cfg.setupOpts})
'';
};
}

View file

@ -0,0 +1,6 @@
{
imports = [
./jump.nix
./config.nix
];
}

View file

@ -0,0 +1,13 @@
{
config,
lib,
...
}: let
inherit (lib.options) mkEnableOption mkOption;
inherit (lib.nvim.types) mkPluginSetupOption;
in {
options.vim.mini.jump = {
enable = mkEnableOption "mini.jump";
setupOpts = mkPluginSetupOption "mini.jump" {};
};
}