From f05e14e9430b0c7634dceda3f05f8929f07f878c Mon Sep 17 00:00:00 2001 From: Uzair Aftab Date: Thu, 13 Jul 2023 20:01:21 +0200 Subject: [PATCH] feat(split-and-window): Add minimap.vim --- .../split-and-window/minimap-vim/README.md | 8 ++++++++ .../split-and-window/minimap-vim/init.lua | 10 ++++++++++ 2 files changed, 18 insertions(+) create mode 100644 lua/astrocommunity/split-and-window/minimap-vim/README.md create mode 100644 lua/astrocommunity/split-and-window/minimap-vim/init.lua diff --git a/lua/astrocommunity/split-and-window/minimap-vim/README.md b/lua/astrocommunity/split-and-window/minimap-vim/README.md new file mode 100644 index 000000000..d60d8d479 --- /dev/null +++ b/lua/astrocommunity/split-and-window/minimap-vim/README.md @@ -0,0 +1,8 @@ +# minimap.vim + +📡 Blazing fast minimap / scrollbar for vim, powered by code-minimap written in Rust. + +Requires: +- [code-minimap](https://github.com/wfxr/code-minimap) + +**Repository:** diff --git a/lua/astrocommunity/split-and-window/minimap-vim/init.lua b/lua/astrocommunity/split-and-window/minimap-vim/init.lua new file mode 100644 index 000000000..b5ebe8b6c --- /dev/null +++ b/lua/astrocommunity/split-and-window/minimap-vim/init.lua @@ -0,0 +1,10 @@ +return { + "wfxr/minimap.vim", + lazy = false, + cmd = { "Minimap", "MinimapClose", "MinimapToggle", "MinimapRefresh", "MinimapUpdateHighlight" }, + init = function() + vim.cmd "let g:minimap_width = 10" + vim.cmd "let g:minimap_auto_start = 1" + vim.cmd "let g:minimap_auto_start_win_enter = 1" + end, +}