neovim-confs/lua/plex/plugins/extras/ui/minimap.lua

51 lines
1.3 KiB
Lua
Raw Normal View History

2023-09-06 00:26:45 +02:00
return {
{
2024-01-11 14:24:31 +01:00
-- TODO: switch for a better plugin, some chars are not customizable and
-- don't render correctly (unicode ? signs)
"echasnovski/mini.map",
2023-09-06 00:26:45 +02:00
keys = {
2024-01-11 14:24:31 +01:00
{ "<Leader>mn", "<cmd>lua MiniMap.toggle()<CR>", desc = "Mini map" },
2023-09-06 00:26:45 +02:00
},
opts = function()
2024-01-11 14:24:31 +01:00
local minimap = require("mini.map")
2023-09-06 00:26:45 +02:00
return {
integrations = {
minimap.gen_integration.diagnostic(),
minimap.gen_integration.builtin_search(),
minimap.gen_integration.gitsigns(),
},
2024-01-11 14:24:31 +01:00
symbols = {
-- Encode symbols. See `:h MiniMap.config` for specification and
-- `:h MiniMap.gen_encode_symbols` for pre-built ones.
-- Default: solid blocks with 3x2 resolution.
encode = nil,
-- Scrollbar parts for view and line. Use empty string to disable any.
scroll_line = "",
scroll_view = "",
},
-- Window options
window = {
-- Whether window is focusable in normal way (with `wincmd` or mouse)
focusable = true,
-- Side to stick ('left' or 'right')
side = "right",
-- Whether to show count of multiple integration highlights
show_integration_count = true,
-- Total width
width = 10,
-- Value of 'winblend' option
winblend = 25,
-- Z-index
zindex = 10,
},
2023-09-06 00:26:45 +02:00
}
end,
},
}