@@ -36,10 +36,7 @@ local define_user_command = function()
3636 local subcommand = args :next ()
3737 if " uninstall" == subcommand then
3838 vim .fn .delete (nextls .default_bin )
39- vim .notify (
40- string.format (" Uninstalled Next LS from %s" , nextls .default_bin ),
41- vim .lsp .log_levels .INFO
42- )
39+ vim .notify (string.format (" Uninstalled Next LS from %s" , nextls .default_bin ), vim .lsp .log_levels .INFO )
4340 else
4441 not_found = true
4542 end
@@ -80,14 +77,12 @@ function M.setup(opts)
8077 opts .credo .version = utils .latest_release (" elixir-tools" , " credo-language-server" )
8178 end
8279
80+ local nextls_auto_update
8381 if not opts .nextls .cmd then
8482 opts .nextls .cmd = nextls .default_bin
83+ nextls_auto_update = true
8584 end
8685
87- -- if opts.nextls.enable and not opts.nextls.version then
88- -- opts.nextls.version = utils.latest_release("elixir-tools", "next-ls")
89- -- end
90-
9186 mix .setup ()
9287 projectionist .setup ()
9388 if enabled (opts .elixirls .enable ) then
@@ -99,7 +94,7 @@ function M.setup(opts)
9994 end
10095
10196 if opts .nextls .enable == true then
102- nextls .setup (opts .nextls )
97+ nextls .setup (vim . tbl_extend ( " force " , opts .nextls , { auto_update = nextls_auto_update }) )
10398 end
10499end
105100
0 commit comments