-
Hi Chris, I'd like to add I was wondering if there is something like Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hey @gvolpe! Thanks for the question! The really short answer is sure, you can do the following: local metals_config = require("metals").bare_config()
metals_config.cmd = { "whatever/you/want" } However I don't actually document it. The reason for this is that There is a |
Beta Was this translation helpful? Give feedback.
Hey @gvolpe! Thanks for the question!
The really short answer is sure, you can do the following:
However I don't actually document it. The reason for this is that
nvim-metals
actually also takes into accountJAVA_OPTS
,JAVA_FLAGS
, your.jvmopts
file and also anything you pass intometals_config.settings.serverProperties
. It also then strips out certain ones that won't work with metals/coursier automatically and then passes them all in to Neovim to start the server. So if you overridecmd
you lose all of that, which is for sure not what most people want.There is a
useGlobalExecutable
setting …