{"repo":"hedyhli/markdown-toc.nvim","free":true,"listed":false,"github":"https://github.com/hedyhli/markdown-toc.nvim","clone":"git clone https://github.com/hedyhli/markdown-toc.nvim.git","description":"Generate and auto-update table of contents list for markdown","language":"Lua","stars":49,"topics":["markdown","neovim","neovim-lua"],"license":"MIT","category":"productivity","readme_excerpt":"markdown-toc.nvim Generate and update table of contents list (with links) for markdown. Almost fully replaces vim-markdown-toc, written in 100% lua. - Supports setext style headings ( ====== and ------ ). - Supports GitHub Flavoured Markdown links by default. If you want to use another link format a better configuration structure for this is planned, but for now you can set your own formatter function. - You can disable fences but keep the updating feature by manually selecting your table of contents in visual mode, then running :Mtoc Table of contents Dog-fooding ;) Install Setup Common configuration options Fences Examples Commands Full Configuration Advanced Examples Project-local configuration TODO Install Example for Lazy.nvim: - Using GitHub repo: hedyhli/markdown-toc.nvim - Using sourcehut repo: url = \"https://git.sr.ht/ hedy/markdown-toc.nvim\" Making use of lazy-loading with ft means that Mtoc commands won't be available until a markdown file is opened. Note that the repo is called markdown-toc.nvim , but the lua module and commands are prefixed with mtoc rather than markdown-toc . To be explicit or if you run into problems, you can set main = \"mtoc\" in the plugin spec for Lazy.nvim. Setup A call to the setup function is not required for the plugin to work. Default configuration will be used. However, the setup call is required if you want to enable the auto-update feature (because autocmds have to be set up). Common configuration options Pass this table with your con","default_branch":null,"files":null,"tree":[],"storefront":"/r/hedyhli","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/hedyhli/markdown-toc.nvim/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}