mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-01-19 16:32:24 +00:00
mini/clue: init
This commit is contained in:
parent
beedffcb5b
commit
3d47d3f8c3
7 changed files with 62 additions and 0 deletions
|
@ -61,6 +61,7 @@
|
||||||
- `mini.basics`
|
- `mini.basics`
|
||||||
- `mini.bracketed`
|
- `mini.bracketed`
|
||||||
- `mini.bufremove`
|
- `mini.bufremove`
|
||||||
|
- `mini.clue`
|
||||||
|
|
||||||
[kaktu5](https://github.com/kaktu5):
|
[kaktu5](https://github.com/kaktu5):
|
||||||
|
|
||||||
|
|
17
flake.lock
17
flake.lock
|
@ -1048,6 +1048,22 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"plugin-mini-clue": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1737130586,
|
||||||
|
"narHash": "sha256-/0DpZV/jXuhaqBz5j4JN3xmofATlwPMHNSm/uTXALg0=",
|
||||||
|
"owner": "echasnovski",
|
||||||
|
"repo": "mini.clue",
|
||||||
|
"rev": "63e42dad781b9ed4845d90ef1da8c52dfb6dce3f",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "echasnovski",
|
||||||
|
"repo": "mini.clue",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"plugin-minimap-vim": {
|
"plugin-minimap-vim": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
|
@ -2251,6 +2267,7 @@
|
||||||
"plugin-mini-basics": "plugin-mini-basics",
|
"plugin-mini-basics": "plugin-mini-basics",
|
||||||
"plugin-mini-bracketed": "plugin-mini-bracketed",
|
"plugin-mini-bracketed": "plugin-mini-bracketed",
|
||||||
"plugin-mini-bufremove": "plugin-mini-bufremove",
|
"plugin-mini-bufremove": "plugin-mini-bufremove",
|
||||||
|
"plugin-mini-clue": "plugin-mini-clue",
|
||||||
"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",
|
||||||
|
|
|
@ -780,5 +780,10 @@
|
||||||
url = "github:echasnovski/mini.bufremove";
|
url = "github:echasnovski/mini.bufremove";
|
||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
plugin-mini-clue = {
|
||||||
|
url = "github:echasnovski/mini.clue";
|
||||||
|
flake = false;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
13
modules/plugins/mini/clue/clue.nix
Normal file
13
modules/plugins/mini/clue/clue.nix
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib.options) mkEnableOption mkOption;
|
||||||
|
inherit (lib.nvim.types) mkPluginSetupOption;
|
||||||
|
in {
|
||||||
|
options.vim.mini.clue = {
|
||||||
|
enable = mkEnableOption "mini.clue";
|
||||||
|
setupOpts = mkPluginSetupOption "mini.clue" {};
|
||||||
|
};
|
||||||
|
}
|
19
modules/plugins/mini/clue/config.nix
Normal file
19
modules/plugins/mini/clue/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.clue;
|
||||||
|
in {
|
||||||
|
vim = mkIf cfg.enable {
|
||||||
|
startPlugins = ["mini-clue"];
|
||||||
|
|
||||||
|
pluginRC.mini-clue = entryAnywhere ''
|
||||||
|
require("mini.clue").setup(${toLuaObject cfg.setupOpts})
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
6
modules/plugins/mini/clue/default.nix
Normal file
6
modules/plugins/mini/clue/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./clue.nix
|
||||||
|
./config.nix
|
||||||
|
];
|
||||||
|
}
|
|
@ -7,5 +7,6 @@
|
||||||
./basics
|
./basics
|
||||||
./bracketed
|
./bracketed
|
||||||
./bufremove
|
./bufremove
|
||||||
|
./clue
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue