README.md generator for your Neovim configuration repo. Created for lazy people like me.
THIS PLUGIN IS NOW ARCHIVED, IF YOU WANT TO ACHIEVE THE SAME RESULT (USING LAZY.NVIM), CHECK OUT THIS POST I WROTE ON REDDIT.
mdmaker_showcase.webm
Note: to see the example of a generated readme go to my Neovim config
- Generate README.md file - Run
:MdMake
and it's done - Create URLs for plugin repositories and sort them alphabetically
- Optional - Include the Neovim version manager and GUI of your choice
lazy:
{
"NStefan002/mdmaker.nvim",
cmd = "MdMake",
opts = {
-- your config
}
}
use({
"NStefan002/mdmaker.nvim",
config = function()
require("mdmaker").setup({
-- your config
})
end,
})
- curl (only if
enable_url_check
is set to true) - Neovim nightly (only if
enable_url_check
is set to true) - Neovim version 0.9.1 and above (might work with earlier versions but it's not tested)
Full list of options with their default values
{
nvim_dir = "~/.config/nvim/",
output = "~/.config/nvim/README.md",
enable_url_check = false, -- disable if generating README.md offline or with a bad connection
package_maganer = "folke/lazy.nvim",
-- If you don't want any of the following fields, set them to ""
title = "Neovim configuration",
version_manager = { name = "", url = "" },
gui = { name = "", url = "" },
}
- MdMaker goes through your Neovim configuration files and finds the plugin repo
names, generates URLs, and creates a README.md file.
Because it is using lua patterns to match the plugin names, it could (rarely)
make a mistake (for example if you have a string
"some_non-blank_characters/same_thing"
in your config that is inside of a comment or something similar). If that happens consider enabling theenable_url_check
option. It will take some time to finish (1-10 sec on avg. depending on the number of plugins, internet speed, etc.). Note that while it validates URLs, It WILL NOT block your Neovim instance! It will work in the background and notify you when your README is generated. - This plugin was only tested on Linux systems.
- This plugin was created for my personal use (since I'm a lazy bastard). I shared it so someone can fork it and customize it according to their personal needs if they don't like my 'style' of writing READMEs (e.g. icon choice, sorting order of plugins, etc.).