mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-21 08:35:48 +02:00
51 lines
1.2 KiB
Lua
51 lines
1.2 KiB
Lua
return {
|
|
-- "echasnovski/mini.map",
|
|
-- branch = "stable",
|
|
-- event = "BufRead",
|
|
-- config = function()
|
|
-- require("mini.map").setup()
|
|
-- local map = require("mini.map")
|
|
-- map.setup({
|
|
-- integrations = {
|
|
-- map.gen_integration.builtin_search(),
|
|
-- map.gen_integration.diagnostic({
|
|
-- error = "DiagnosticFloatingError",
|
|
-- warn = "DiagnosticFloatingWarn",
|
|
-- info = "DiagnosticFloatingInfo",
|
|
-- hint = "DiagnosticFloatingHint",
|
|
-- }),
|
|
-- },
|
|
-- symbols = {
|
|
-- encode = map.gen_encode_symbols.dot("4x2"),
|
|
-- },
|
|
-- window = {
|
|
-- side = "right",
|
|
-- width = 10, -- set to 1 for a pure scrollbar :)
|
|
-- winblend = 15,
|
|
-- show_integration_count = false,
|
|
-- },
|
|
-- })
|
|
--
|
|
-- vim.api.nvim_create_autocmd("FileType", {
|
|
-- pattern = "*",
|
|
-- callback = function()
|
|
-- local exclude_ft = {
|
|
-- "qf",
|
|
-- "NvimTree",
|
|
-- "toggleterm",
|
|
-- "TelescopePrompt",
|
|
-- "alpha",
|
|
-- "netrw",
|
|
-- }
|
|
--
|
|
-- local map = require("mini.map")
|
|
-- if vim.tbl_contains(exclude_ft, vim.o.filetype) then
|
|
-- vim.b.minimap_disable = true
|
|
-- map.close()
|
|
-- elseif vim.o.buftype == "" then
|
|
-- map.open()
|
|
-- end
|
|
-- end,
|
|
-- })
|
|
-- end,
|
|
}
|