mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-01-19 16:32:24 +00:00
mini/jump2d: init
This commit is contained in:
parent
36f535c4ef
commit
e58472cee7
7 changed files with 62 additions and 0 deletions
|
@ -76,6 +76,7 @@
|
|||
- `mini.icons`
|
||||
- `mini.indentscope`
|
||||
- `mini.jump`
|
||||
- `mini.jump2d`
|
||||
|
||||
[kaktu5](https://github.com/kaktu5):
|
||||
|
||||
|
|
17
flake.lock
17
flake.lock
|
@ -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",
|
||||
|
|
|
@ -855,5 +855,10 @@
|
|||
url = "github:echasnovski/mini.jump";
|
||||
flake = false;
|
||||
};
|
||||
|
||||
plugin-mini-jump2d = {
|
||||
url = "github:echasnovski/mini.jump2d";
|
||||
flake = false;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -22,5 +22,6 @@
|
|||
./icons
|
||||
./indentscope
|
||||
./jump
|
||||
./jump2d
|
||||
];
|
||||
}
|
||||
|
|
19
modules/plugins/mini/jump2d/config.nix
Normal file
19
modules/plugins/mini/jump2d/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.jump2d;
|
||||
in {
|
||||
vim = mkIf cfg.enable {
|
||||
startPlugins = ["mini-jump2d"];
|
||||
|
||||
pluginRC.mini-jump2d = entryAnywhere ''
|
||||
require("mini.jump2d").setup(${toLuaObject cfg.setupOpts})
|
||||
'';
|
||||
};
|
||||
}
|
6
modules/plugins/mini/jump2d/default.nix
Normal file
6
modules/plugins/mini/jump2d/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./jump2d.nix
|
||||
./config.nix
|
||||
];
|
||||
}
|
13
modules/plugins/mini/jump2d/jump2d.nix
Normal file
13
modules/plugins/mini/jump2d/jump2d.nix
Normal 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" {};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue