minimap was found

This commit is contained in:
Christoph J. Scherr 2024-01-11 14:24:31 +01:00
parent 7fbe2c165b
commit 60f1ab1194
Signed by: cscherrNT
GPG Key ID: 8E2B45BC51A27EA7
1 changed files with 35 additions and 4 deletions

View File

@ -1,18 +1,49 @@
return {
{
'echasnovski/mini.map',
-- TODO: switch for a better plugin, some chars are not customizable and
-- don't render correctly (unicode ? signs)
"echasnovski/mini.map",
keys = {
{ '<Leader>mn', '<cmd>lua MiniMap.toggle()<CR>', desc = 'Mini map' },
{ "<Leader>mn", "<cmd>lua MiniMap.toggle()<CR>", desc = "Mini map" },
},
opts = function()
local minimap = require('mini.map')
local minimap = require("mini.map")
return {
integrations = {
minimap.gen_integration.diagnostic(),
minimap.gen_integration.builtin_search(),
minimap.gen_integration.gitsigns(),
},
window = { winblend = 50 },
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,
},
}
end,
},