Skip to content

Commit

Permalink
feat(split-and-window): Add mini-map (#665)
Browse files Browse the repository at this point in the history
feat(split-and-window): Add mini-map

Co-authored-by: gacallea <[email protected]>
  • Loading branch information
andreacfromtheapp and gacallea authored Dec 3, 2023
1 parent 979a830 commit 454a613
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lua/astrocommunity/split-and-window/mini-map/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# mini-map

Blazing fast minimap and scrollbar for vim with no external dependencies.

**Repository:** <https://github.com/echasnovski/mini.map>
38 changes: 38 additions & 0 deletions lua/astrocommunity/split-and-window/mini-map/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
return {
{
"echasnovski/mini.map",
version = "*",
keys = {
{ "<leader>um", function() require("mini.map").toggle() end, desc = "Toggle minimap" },
},
opts = function()
local map = require "mini.map"
return {
integrations = {
map.gen_integration.builtin_search(),
map.gen_integration.gitsigns(),
map.gen_integration.diagnostic {
error = "DiagnosticFloatingError",
warn = "DiagnosticFloatingWarn",
info = "DiagnosticFloatingInfo",
hint = "DiagnosticFloatingHint",
},
},
symbols = {
encode = map.gen_encode_symbols.dot "3x2",
},
window = {
side = "right",
width = 22,
winblend = 5,
show_integration_count = true,
},
}
end,
},
{
"catppuccin/nvim",
optional = true,
opts = { integrations = { mini = true } },
},
}

0 comments on commit 454a613

Please sign in to comment.