Triggering preinstallation #1188
Replies: 2 comments 1 reply
-
|
I have similar problem and manage to solve it with the following line Dockerfile codeI know this is an old post, but this answer might help someone else encountering the same problem |
Beta Was this translation helpful? Give feedback.
-
|
thank you both, needed the same and got a great head start unfortunately for me ended up with a bit annoying, considering the time I spent to find how to orchestrate Mason, Mason-Lspconfig, and Lspconfig to have the LSPs all declared in one place using |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm using neovim inside docker, because of this it's common, that I start with a "clean" neovim installation (of course I use my config everytime, but there is nothing installed on the system, other than the config).
To reduce the startup phase I've added
nvim --headless "+Lazy! sync" +qato my Docker build steps, so the plugins will be installed once before starting. This works great, but I can't find a way, to preinstall my configured language servers with mason. I assume this is caused by lazy.nvim, but if this should be an issue with mason, I'll move this to their repo.config structure
init.lua
includeLazy.lua
configureLspZero.lua
lsp-zero.lua
I image the issue is happening, because with the
--headlesscmd lazy only loads all the configured plugins and not executes all files ininit.lua. So is there maybe another way, to fully execute theinit.lua? Btw I also tried to use some other nvim command line options, to run it, but they all failed:Beta Was this translation helpful? Give feedback.
All reactions