-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto-start doesn't seem to work (LunarVim) #178
Comments
Same problem here, but in Lazyvim |
I'm not able to reproduce this. Right after opening a file, can you print out the values?
I'm not familiar with that method of setting up plugins and config, so I'm wondering if the value is not being set properly during startup. |
All three give me unknown variable errors. If I instead put it at the top-level of my vimrc, I get:
Is it possible that this plugin just does not load correctly when set up via lazyvim? |
Ah, that's probably it. Right now it's checking for the value of 1 explicitly:
We'll need to update this to do a proper boolean check. As a workaround, try setting the value to |
I tried setting it to 1, unfortunately no change. |
Okay, it seems to work for me now: vim.g.minimap_width = 10
vim.g.minimap_auto_start = true
vim.g.minimap_auto_start_win_enter = true
table.insert(lvim.plugins, {
'wfxr/minimap.vim',
build = "cargo install --locked code-minimap",
}) The problem was a combination of:
The true/1 distinction is irrelevant, it seems. Edit: This also works: table.insert(lvim.plugins, {
'wfxr/minimap.vim',
build = "cargo install --locked code-minimap",
init = function()
vim.g.minimap_width = 10
vim.g.minimap_auto_start = 1
vim.g.minimap_auto_start_win_enter = 1
end
})
|
I am suffering the same issue not solved using anything mentioned. When using the workaround @haasn noted I get the minimap showing (great) but without the background highlight (darn). If the 'cmd = ' line is missing then the highlight background doesn't show. |
For me, in lazyvim, this does open minimap on startup, but, doesn't show the background highlight (or cursor position) in the minimap - and I disabled all other plugins and custom settings:
I also get:
|
I have also encountered this issue, but after deleting it. Use 'cargo install code-minimap' on the terminal to install code-minimap and ensure no errors are reported. Then locate minimap.vim in nvim-data and delete the minimap.vim folder. Re enter nvim, it will be downloaded again, and then it is ready. You can give it a try. @mclarkson I am also use lazyvim,and no have any problem. |
For me, simply put "init" instead of "config" does the job. I'm using LunarVim. Hope it helps someone out there! ;-)
|
After a bit of research, I found that in LunarVim the background highlight disappears after any activity: for example, if you set the option If you set |
I have some issue, and I also use lunarVim. This code can fix my problem, I rewrite it from config to init. |
Seems to have a lot more to do with LunarVim than this plugin. I'll leave this open in case there is more discussion, but I'm not seeing anything that needs to change in minimap.vim. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Check list
Environment info
Version info
Using LunarVim.
Question / Problem and steps to reproduce
(Taken from here)
2. Open any file
3. Observe minimap not showing up automatically.
4. Type
:Minimap
5. Minimap shows up as expected
It's not a problem of the config part because changing
g:minimap_width = 10
in this example to= 40
makes it work. I also tried moving thesevim.cmd
commands before the plugin setup part, with no change.The text was updated successfully, but these errors were encountered: