mini/jump2d: init

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

View file

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

View file

@ -1288,6 +1288,22 @@
"type": "github"
}
},
"plugin-mini-jump2d": {
"flake": false,
"locked": {
"lastModified": 1733662811,
"narHash": "sha256-+DihKCh6GYwin3H9YD+q30MLMRNXvvb1GtKnfBinGjc=",
"owner": "echasnovski",
"repo": "mini.jump2d",
"rev": "88077058297e80f1c76a18ed801ae9d7064187c6",
"type": "github"
},
"original": {
"owner": "echasnovski",
"repo": "mini.jump2d",
"type": "github"
}
},
"plugin-minimap-vim": {
"flake": false,
"locked": {
@ -2506,6 +2522,7 @@
"plugin-mini-icons": "plugin-mini-icons",
"plugin-mini-indentscope": "plugin-mini-indentscope",
"plugin-mini-jump": "plugin-mini-jump",
"plugin-mini-jump2d": "plugin-mini-jump2d",
"plugin-minimap-vim": "plugin-minimap-vim",
"plugin-modes-nvim": "plugin-modes-nvim",
"plugin-neo-tree-nvim": "plugin-neo-tree-nvim",

View file

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

View file

@ -22,5 +22,6 @@
./icons
./indentscope
./jump
./jump2d
];
}

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

View file

@ -0,0 +1,6 @@
{
imports = [
./jump2d.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.jump2d = {
enable = mkEnableOption "mini.jump2d";
setupOpts = mkPluginSetupOption "mini.jump2d" {};
};
}