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