{"id":13410641,"url":"https://github.com/richardbizik/nvim-toc","last_synced_at":"2026-01-17T01:11:26.405Z","repository":{"id":182891994,"uuid":"669262177","full_name":"richardbizik/nvim-toc","owner":"richardbizik","description":"Generate markdown table of contents","archived":false,"fork":false,"pushed_at":"2024-01-04T15:36:26.000Z","size":6,"stargazers_count":36,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-07-31T20:43:35.736Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/richardbizik.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-07-21T18:47:41.000Z","updated_at":"2024-06-28T15:21:51.000Z","dependencies_parsed_at":"2024-01-03T03:29:23.918Z","dependency_job_id":"9aa6b116-6a21-4e13-8073-a46f2854d1b3","html_url":"https://github.com/richardbizik/nvim-toc","commit_stats":null,"previous_names":["richardbizik/nvim-toc"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/richardbizik/nvim-toc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richardbizik%2Fnvim-toc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richardbizik%2Fnvim-toc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richardbizik%2Fnvim-toc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richardbizik%2Fnvim-toc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/richardbizik","download_url":"https://codeload.github.com/richardbizik/nvim-toc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richardbizik%2Fnvim-toc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28491084,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T00:50:05.742Z","status":"ssl_error","status_checked_at":"2026-01-17T00:43:11.982Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-30T20:01:08.146Z","updated_at":"2026-01-17T01:11:26.386Z","avatar_url":"https://github.com/richardbizik.png","language":"Lua","funding_links":[],"categories":["Programming Languages Support"],"sub_categories":["Markdown and LaTeX"],"readme":"# nvim-toc\nGenerate table of contents for markdown files\n\n# Installation\n```vim\nPlug 'richardbizik/nvim-toc'\n```\n\n# Commands\n- :TOC - creates an ordered list table of contents\n- :TOCList - creates an unordered list table of contents\n\n# Configuration\nSetup default command `:TOC` and `:TOCList` with `require('nvim-toc').setup({})`. The default commands will try to find existing table of contents based on `toc_header` configuration or they will create a new one on cursor position if it does not exist. \nYou can setup your own command by calling `require('nvim-toc').generate_md_toc(format)` and handling the result yourself.  \nFormat options are currently list or numbered\n```lua\nrequire('nvim-toc').generate_md_toc(\"list\")\nrequire('nvim-toc').generate_md_toc(\"numbered\")\n```\nThe result of the command is a table containing lines of table of contents.\nCommand will generate a table of contents of an opened markdown file on the current line.\n\n## Config options\n```lua\nrequire(\"nvim-toc\").setup({\n  toc_header = \"Table of Contents\"\n})\n```\n\n# Example\n```markdown\n# Table of contents (:TOC)\n1. [h1](#h1)\n2. [h1](#h1)\n   1. [h2](#h2)\n      1. [h3](#h3)\n         1. [h4](#h4)\n            1. [h5](#h5)\n               1. [h6](#h6)\n               2. [h6](#h6)\n               3. [h6](#h6)\n         2. [h4](#h4)\n            1. [h5](#h5)\n   2. [h2](#h2)\n   3. [h2](#h2)\n   4. [h2](#h2)\n3. [h1](#h1)\n\n# Table of contents (:TOCList)\n- [h1](#h1)\n- [h1](#h1)\n  - [h2](#h2)\n    - [h3](#h3)\n      - [h4](#h4)\n        - [h5](#h5)\n          - [h6](#h6)\n          - [h6](#h6)\n          - [h6](#h6)\n      - [h4](#h4)\n        - [h5](#h5)\n  - [h2](#h2)\n  - [h2](#h2)\n  - [h2](#h2)\n- [h1](#h1)\n\n# h1\n# h1\n## h2\n### h3\n#### h4\n##### h5\n###### h6\n###### h6\n###### h6\n#### h4\n##### h5\n## h2\n## h2\n## h2\n# h1\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frichardbizik%2Fnvim-toc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frichardbizik%2Fnvim-toc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frichardbizik%2Fnvim-toc/lists"}