mini/splitjoin: init

This commit is contained in:
LilleAila 2025-01-17 21:12:03 +01:00
parent 7fc00f75f6
commit 52bc5f23ee
No known key found for this signature in database
GPG key ID: D1ACCDCF2B9B9799
7 changed files with 62 additions and 0 deletions

View file

@ -86,6 +86,7 @@
- `mini.pick`
- `mini.sessions`
- `mini.snippets`
- `mini.splitjoin`
[kaktu5](https://github.com/kaktu5):

View file

@ -1448,6 +1448,22 @@
"type": "github"
}
},
"plugin-mini-splitjoin": {
"flake": false,
"locked": {
"lastModified": 1719822504,
"narHash": "sha256-LDIbh5KfupTI4zkYOlLmVCd3DuZRhx5lTASN53VG34g=",
"owner": "echasnovski",
"repo": "mini.splitjoin",
"rev": "3e92f6764e770ba392325cad3a4497adcada695f",
"type": "github"
},
"original": {
"owner": "echasnovski",
"repo": "mini.splitjoin",
"type": "github"
}
},
"plugin-minimap-vim": {
"flake": false,
"locked": {
@ -2676,6 +2692,7 @@
"plugin-mini-pick": "plugin-mini-pick",
"plugin-mini-sessions": "plugin-mini-sessions",
"plugin-mini-snippets": "plugin-mini-snippets",
"plugin-mini-splitjoin": "plugin-mini-splitjoin",
"plugin-minimap-vim": "plugin-minimap-vim",
"plugin-modes-nvim": "plugin-modes-nvim",
"plugin-neo-tree-nvim": "plugin-neo-tree-nvim",

View file

@ -905,5 +905,10 @@
url = "github:echasnovski/mini.snippets";
flake = false;
};
plugin-mini-splitjoin = {
url = "github:echasnovski/mini.splitjoin";
flake = false;
};
};
}

View file

@ -32,5 +32,6 @@
./pick
./sessions
./snippets
./splitjoin
];
}

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

View file

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