Skip to content

Commit

Permalink
lsp-erlang: set priority lower than erlang_ls if elp not selected (#4147
Browse files Browse the repository at this point in the history
)
  • Loading branch information
alanz authored Aug 22, 2023
1 parent 72649c7 commit 2e6683f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clients/lsp-erlang.el
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ It can use erlang-ls or erlang-language-platform (ELP)."
"elp")
,@(cl-rest lsp-erlang-elp-server-command))))
:activation-fn (lsp-activate-on "erlang")
:priority (if (eq lsp-erlang-server 'erlang-language-platform) 1 -1)
:priority (if (eq lsp-erlang-server 'erlang-language-platform) 1 -2)
:server-id 'elp
:custom-capabilities `((experimental . ((snippetTextEdit . ,(and lsp-enable-snippet (featurep 'yasnippet))))))
:download-server-fn (lambda (_client callback error-callback _update?)
Expand Down

0 comments on commit 2e6683f

Please sign in to comment.