-
-
Notifications
You must be signed in to change notification settings - Fork 253
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(split-and-window): Add mini-map (#665)
feat(split-and-window): Add mini-map Co-authored-by: gacallea <[email protected]>
- Loading branch information
1 parent
979a830
commit 454a613
Showing
2 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 } }, | ||
}, | ||
} |