diff --git a/lua/astrocommunity/split-and-window/mini-map/README.md b/lua/astrocommunity/split-and-window/mini-map/README.md new file mode 100644 index 000000000..7ccaf9ef1 --- /dev/null +++ b/lua/astrocommunity/split-and-window/mini-map/README.md @@ -0,0 +1,5 @@ +# mini-map + +Blazing fast minimap and scrollbar for vim with no external dependencies. + +**Repository:** diff --git a/lua/astrocommunity/split-and-window/mini-map/init.lua b/lua/astrocommunity/split-and-window/mini-map/init.lua new file mode 100644 index 000000000..c1e68512f --- /dev/null +++ b/lua/astrocommunity/split-and-window/mini-map/init.lua @@ -0,0 +1,38 @@ +return { + { + "echasnovski/mini.map", + version = "*", + keys = { + { "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 } }, + }, +}