mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-10 17:24:32 +02:00
docs: optionally add a description to plugins
This commit is contained in:
parent
2d4ebda245
commit
848543d527
4 changed files with 24 additions and 7 deletions
|
@ -22,6 +22,7 @@
|
|||
# Attribute may contain the following fields:
|
||||
# - name: Name of the module
|
||||
# - kind: Either colorschemes or plugins
|
||||
# - description: A short description of the plugin
|
||||
# - url: Url for the plugin
|
||||
#
|
||||
# [kind name] will identify the plugin
|
||||
|
@ -37,12 +38,16 @@
|
|||
# }
|
||||
#
|
||||
# Where <info> is an attrset of the form:
|
||||
# {file = "path"; url = null or "<URL>";}
|
||||
# {
|
||||
# file = "path";
|
||||
# description = null or "<DESCRIPTION>";
|
||||
# url = null or "<URL>";
|
||||
# }
|
||||
merge = _: defs:
|
||||
lib.foldl' (acc: def:
|
||||
lib.recursiveUpdate acc {
|
||||
"${def.value.kind}"."${def.value.name}" = {
|
||||
inherit (def.value) url;
|
||||
inherit (def.value) url description;
|
||||
inherit (def) file;
|
||||
};
|
||||
}) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue