Skip to content

lum1nar/float-toc.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

18 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

float-toc.nvim

MIT nvim

Lightweight floating TOC for Markdown β€” clean, simple, distraction-free. demo

A tiny, modern floating Table-of-Contents viewer for Markdown in Neovim. Pop open a minimal floating window, jump across headings instantly, and keep your writing workflow clean.


✨ Features

  • πŸͺΆ Floating TOC window β€” stays out of your way
  • 🧭 Jump to headings instantly
  • βš™οΈ Configurable β€” choose icon, indentation, window ratio
  • πŸ“ Perfect for note-taking, documentation, or writing

πŸ“¦ Installation

Example using lazy.nvim:

{
    "lum1nar/float-toc.nvim",
    opts = {
    -- your options here
    }
}

βš™οΈ Setup

require("float-toc").setup({
    bullet_icon = "⁍",   -- icon before each heading
    -- bullet_icon options: { "β€’", "Β·", "●", "β–ͺ", "β–Ž", "▏", "▍", "β•Ž", "β–Ά", "β€Ί", "β–Έ", "β—†", "β—‡", "β—¦", "✦" }
    indent_width = 4,      -- indentation per level
    width_ratio = 0.4,     -- window width relative to editor
    height_ratio = 0.6,    -- window height relative to editor
})

Optional keymap:

vim.keymap.set("n", "<leader>t", "<cmd>FloatTOC<cr>")

All settings are optional β€” the defaults work out of the box.


πŸš€ Usage

Open the floating TOC:

:FloatTOC

About

A Tiny Floating Table-of-Contents for Neovim

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages