A lightweight, high-performance, plugin to access markdown file headings (Table Of Content) with auto integrations with Telescope
✅ Auto integrations with Telescope if installed and if not will use native vim.select
vim.pack.add({
"https://github.com/janecodelife/markdown-toc.nvim",
"https://github.com/nvim-telescope/telescope.nvim" -- Optional
})
-- Setup and configure the plugin
require("markdown-toc").setup({
min_level = 1, -- Include everything from level 1 (#)
max_level = 6, -- Down to level 6 (######)
})
vim.keymap.set("n", "<leader>mo", "<cmd>MarkdownTOC<cr>", { desc = "Markdown Open TOC" })
| Option | Type | Default | Description |
|---|---|---|---|
min_level |
number |
1 |
The minimum markdown heading depth to parse into the table of contents list. |
max_level |
number |
6 |
The maximum markdown heading depth to parse into the table of contents list. |
Every bit of support fuels the expansion of this ecosystem and helps me write cleaner tools for all of us. Thank you for standing behind independent developers!_ 🙏🤟
Check out my other open-source tools to supercharge your Neovim environment:
- livewire-secure-properties - Secure livewire app properties by default and void headache.
- todo-tracker.nvim - Assign and list app todos in a blink
- folders-bookmark.nvim - Bookmark folders and accessing them by keymap in a blink
- copy-history.nvim - Access your copy (Yank) history and paste it again with support of edit by 1 click in a blink.
- rest-client.nvim - run http request from anywhere in a blink
- smart-window-focus.nvim - resize split window on focus to be full size to easy to see and debug.
- markdown-toc.nvim - access markdown file headings (Table Of Content)
- tiny-textobject.nvim - handle text objects (inner/around) without need for Tree-sitter.
I will be there to answer to all messages
- X (Twitter): https://x.com/janecodelife
- YouTube: https://www.youtube.com/@JaneCodeLife
- Email: janecodelife@gmail.com