Lightweight floating TOC for Markdown — clean, simple, distraction-free.

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.
- 🪶 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
Example using lazy.nvim:
{
"lum1nar/float-toc.nvim",
opts = {
-- your options here
}
}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.
Open the floating TOC:
:FloatTOC