elixir-tools.nvim icon indicating copy to clipboard operation
elixir-tools.nvim copied to clipboard

make auto-update of nextls configurable

Open dch opened this issue 3 months ago • 3 comments

nextls is automatically fetched for more common OS & platforms, but for other platforms it should be possible to disable the auto-update, or at least handle it more gracefully than just bailing out.

Currently I'm just building nextls locally in a repo and starting it listening on the appropriate port as required.

What's a reasonable approach here? I see a few options:

  • provide a way to skip auto-update but still have nextls usable
  • handle download failure more gracefully with:
    • bail with a reasonable error message if not MacOS or Linux
    • ditto for other architectures
    • check if curl is available
    • handle failure of curl itself

dch avatar Apr 02 '24 15:04 dch

If you set the cmd field to the location of your locally built exe, it will disable auto update and still run it through stdio as usual.

mhanberg avatar Apr 02 '24 15:04 mhanberg

Also do you mean auto update or the auto install?

Auto update is done by next ls (updates itself in place) and auto install is when the nvim plugin downloads it if it can't find one and cmd isn't set

mhanberg avatar Apr 02 '24 15:04 mhanberg

Also what platform are you on?

mhanberg avatar Apr 03 '24 02:04 mhanberg