-
Beta Was this translation helpful? Give feedback.
Answered by
Jomik
Aug 21, 2024
Replies: 2 comments 5 replies
-
That's the first time I am seeing this kind of issue (work in regular buffer but not in floating window). Here is what I'd suspect first:
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Sooo, I changed my config to move my {
"echasnovski/mini.map",
version = "*",
init = function(_, opts)
local mini_map = require("mini.map")
opts = {
integrations = {
mini_map.gen_integration.builtin_search(),
mini_map.gen_integration.diff(),
mini_map.gen_integration.diagnostic(),
},
symbols = {
encode = mini_map.gen_encode_symbols.dot("4x2"),
},
}
mini_map.setup(opts)
vim.api.nvim_create_autocmd("VimEnter", {
callback = mini_map.open,
})
vim.api.nvim_create_autocmd("WinClosed", {
callback = mini_map.refresh,
})
vim.api.nvim_create_autocmd({ "CursorHold", "CursorHoldI" }, {
callback = function()
local _, col = unpack(vim.api.nvim_win_get_cursor(0))
local width = vim.api.nvim_win_get_width(0)
if width - col < 20 then
mini_map.close()
else
mini_map.open()
end
end,
})
end,
} |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
echasnovski
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sooo, I changed my config to move my
opts
intoinit
, and that fixed it.So I must have done something wrong ... My original config is in the top post.