mini/doc: init

This commit is contained in:
LilleAila 2025-01-17 20:14:59 +01:00
parent 4b4423af91
commit 753eb3e99d
No known key found for this signature in database
GPG key ID: D1ACCDCF2B9B9799
7 changed files with 62 additions and 0 deletions

View file

@ -66,6 +66,7 @@
- `mini.comment`
- `mini.completion`
- `mini.diff`
- `mini.doc`
[kaktu5](https://github.com/kaktu5):

View file

@ -1128,6 +1128,22 @@
"type": "github"
}
},
"plugin-mini-doc": {
"flake": false,
"locked": {
"lastModified": 1723308950,
"narHash": "sha256-Q3DAEV1ZHS+lFhZKFCNoIjn41ksk7WRrVP2b2d6uSss=",
"owner": "echasnovski",
"repo": "mini.doc",
"rev": "bb73a3d1ff390f7e2740027ea2567017099a237c",
"type": "github"
},
"original": {
"owner": "echasnovski",
"repo": "mini.doc",
"type": "github"
}
},
"plugin-minimap-vim": {
"flake": false,
"locked": {
@ -2336,6 +2352,7 @@
"plugin-mini-comment": "plugin-mini-comment",
"plugin-mini-completion": "plugin-mini-completion",
"plugin-mini-diff": "plugin-mini-diff",
"plugin-mini-doc": "plugin-mini-doc",
"plugin-minimap-vim": "plugin-minimap-vim",
"plugin-modes-nvim": "plugin-modes-nvim",
"plugin-neo-tree-nvim": "plugin-neo-tree-nvim",

View file

@ -805,5 +805,10 @@
url = "github:echasnovski/mini.diff";
flake = false;
};
plugin-mini-doc = {
url = "github:echasnovski/mini.doc";
flake = false;
};
};
}

View file

@ -12,5 +12,6 @@
./comment
./completion
./diff
./doc
];
}

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

View file

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