62

GitHub - wfxr/minimap.vim: 📡 Blazing fast minimap for vim, powered by code-minim...

 3 years ago
source link: https://github.com/wfxr/minimap.vim
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

📡 minimap.vim

Blazing fast minimap for vim, powered by 🛰 code-minimap written in Rust.

CI License Vim Neovim Contributors

screenshot

✨ Features

  • Blazing-fast (see benchmark).
  • Dynamic scaling.
  • Real-time highlight.
  • It can be used to scroll buffer (in vim's way!).

📥 Installation

Requirement

  • 🛰code-minimap is required. The plugin receives rendered minimap from it.
  • vim8.2+, or neovim 0.5.0+.

Use your favorite plugin manager, vim-plug for example:

Plug 'wfxr/minimap.vim'

If you need to install the plugin manually, you can refer to this issue: #2.

You can use cargo to install 'code-minimap' simultaneously (Only recommended for rust users):

Plug 'wfxr/minimap.vim', {'do': ':!cargo install --locked code-minimap'}

🛠 Commands

Flag Description Minimap Show minimap window MinimapClose Close minimap window MinimapToggle Toggle minimap window MinimapRefresh Force refresh minimap window MinimapUpdateHighlight Force update minimap highlight

⚙ Options

Flag Default Description g:minimap_left 0 if set minimap window will append left g:minimap_width 10 the width of the minimap window in characters g:minimap_highlight Title the color of the highlighting for current position g:minimap_auto_start 0 if set minimap will show at startup

💬 F.A.Q


Highlight and scroll are not working properly.

Check the vim version you are using. minimap.vim requires vim 8.2+ or neovim 0.5.0+.


Integrated with diagnostics or git status plugins?

Not implemented currently but it should be possible. I am a beginner in vim plugin. I don't known how to implement such features correctly and efficiently. Welcome to contribute!


Minimap window is too wide for me, how to use it as a simple scrollbar?

You can decrease the minimap window width:

let g:minimap_width = 2

Or use scrollbar.nvim instead if what you want is a pure scrollbar indicator.

📦 Related Projects

📃 License

MIT (c) Wenxuan Zhang


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK