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