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