A Neovim plugin that displays a live outline of your markdown files in a split window.

- Automatic outline management: Opens automatically when entering markdown files, closes when leaving
- Real-time updates: Outline content updates as you edit the file
- Current heading highlight: Highlights the heading corresponding to your cursor position
- Auto-sync on buffer switch: Automatically updates the outline when switching between markdown files

Installation(example for lazy.nvim)
Simple installation
return {
'tttol/md-outline.nvim',
}
To configure options
return {
'tttol/md-outline.nvim',
config = function()
require('md-outline').setup({
auto_open = false -- default: true
})
end
}
:MdoOpen- Open the markdown outline in a split window:MdoClose- Close the outline window
require('md-outline').setup({
auto_open = true -- Automatically open outline for markdown files (default: true)
})auto_open(boolean, default:true): Enable/disable automatic outline opening when entering markdown files
When you open a markdown file:
- The outline window opens automatically on the right side (if
auto_openis enabled) - All headings (
#,##,###, etc.) are extracted and displayed with proper indentation - As you move your cursor, the current heading is highlighted in the outline
- When you edit the file, the outline updates in real-time
- When you switch to a non-markdown file, the outline closes automatically
MIT