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