Skip to content

Commit 252c3e5

Browse files
authored
fix: correct logic for identifying default cmd(#169)
1 parent a938c09 commit 252c3e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/elixir/nextls/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ function M.setup(opts)
8282
if
8383
not vim.b.elixir_tools_prompted_nextls_install
8484
and type(opts.port) ~= "number"
85-
and not vim.uv.fs_stat(opts.cmd)
85+
and (opts.auto_update and not vim.uv.fs_stat(opts.cmd))
8686
then
8787
vim.ui.select({ "Yes", "No" }, { prompt = "Install Next LS?" }, function(choice)
8888
if choice == "Yes" then

0 commit comments

Comments
 (0)