From fd600be2e504e8a5bc8042afb1ccf19a14222bcd Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Thu, 15 Dec 2022 14:34:08 +0100 Subject: [PATCH] docs: added docs on readme help indexing --- README.md | 1 + lua/lazy/core/config.lua | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/README.md b/README.md index 51319e2..8f6233c 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ - ๐Ÿ› ๏ธ No need to manually compile plugins - ๐Ÿงช Correct sequencing of dependencies - ๐Ÿ“ Configurable in multiple files +- ๐Ÿ“š Generates helptags of the headings in `README.md` files for plugins that don't have vimdocs - ๐Ÿ’ป Dev options and patterns for using local plugins - ๐Ÿ“Š Profiling tools to optimize performance - ๐Ÿ”’ Lockfile `lazy-lock.json` to keep track of installed plugins diff --git a/lua/lazy/core/config.lua b/lua/lazy/core/config.lua index 522bf64..4190c10 100644 --- a/lua/lazy/core/config.lua +++ b/lua/lazy/core/config.lua @@ -75,9 +75,13 @@ M.defaults = { }, }, }, + -- lazy can generate helptags from the headings in markdown readme files, + -- so :help works even for plugins that don't have vim docs. + -- when the readme opens with :help it will be correctly displayed as markdown readme = { root = vim.fn.stdpath("state") .. "/lazy/readme", files = { "README.md" }, + -- only generate markdown helptags for plugins that dont have docs skip_if_doc_exists = true, }, debug = false,