mini/indentscope: init

This commit is contained in:
LilleAila 2025-01-17 20:35:56 +01:00
parent f31b2e06cb
commit be7d949605
No known key found for this signature in database
GPG key ID: D1ACCDCF2B9B9799
7 changed files with 62 additions and 0 deletions

View file

@ -74,6 +74,7 @@
- `mini.hipatterns`
- `mini.hues`
- `mini.icons`
- `mini.indentscope`
[kaktu5](https://github.com/kaktu5):

View file

@ -1256,6 +1256,22 @@
"type": "github"
}
},
"plugin-mini-indentscope": {
"flake": false,
"locked": {
"lastModified": 1737036220,
"narHash": "sha256-Mrzc7oHXxyEGqdE003qiC9unScyb7i5A6+l8Do7yxws=",
"owner": "echasnovski",
"repo": "mini.indentscope",
"rev": "613df2830d7faeae7483ba2e736683154b95921e",
"type": "github"
},
"original": {
"owner": "echasnovski",
"repo": "mini.indentscope",
"type": "github"
}
},
"plugin-minimap-vim": {
"flake": false,
"locked": {
@ -2472,6 +2488,7 @@
"plugin-mini-hipatterns": "plugin-mini-hipatterns",
"plugin-mini-hues": "plugin-mini-hues",
"plugin-mini-icons": "plugin-mini-icons",
"plugin-mini-indentscope": "plugin-mini-indentscope",
"plugin-minimap-vim": "plugin-minimap-vim",
"plugin-modes-nvim": "plugin-modes-nvim",
"plugin-neo-tree-nvim": "plugin-neo-tree-nvim",

View file

@ -845,5 +845,10 @@
url = "github:echasnovski/mini.icons";
flake = false;
};
plugin-mini-indentscope = {
url = "github:echasnovski/mini.indentscope";
flake = false;
};
};
}

View file

@ -20,5 +20,6 @@
./hipatterns
./hues
./icons
./indentscope
];
}

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

View file

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