Announcing ‘mini.map’

announce
reddit
Window with buffer text overview, scrollbar, and highlights
Author

Evgeni Chasnovski

Published

October 11, 2022

Originally posted on Reddit

Hello, Neovim users!

I am here to announce a mini.map - new module of mini.nvim for showing buffer text overview with scrollbar and highlights. It is shown in automatically updated full-height floating window stuck to either side (left or right).

Prior to writing this, I didn’t use any “buffer overview” plugins. I accidentally happened to see a wfxr/minimap.vim plugin, which uses Rust dependency to render text overview. This made me really curious if I could implement similar functionality in Lua with at least comparable speed. Turned out, I could! Benchmarking ‘mini.map’ and ‘wfxr/minimap.vim’ for first map window opening on ‘builtin.txt’ help page (9338 lines) shows around 70-90 milliseconds of computation time. Both are much faster on smaller files, of course.

‘mini.map’ has the following features:

For more information, see help file. Here is a comparison to other similar plugins.

Please, check it out and tell me what you think! Either here in comments or in dedicated beta-testing issue. Thanks!