Skip to content

Commit 6020c1c

Browse files
authored
1 parent 2006a90 commit 6020c1c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ If you're packaging these archives in an IDE plugin, make sure to build using th
137137
Because ElixirLS may get launched from an IDE that itself got launched from a graphical shell, the environment may not
138138
be complete enough to run or even find the correct Elixir/OTP version. The wrapper scripts try to configure `asdf-vm`
139139
if available, but that may not be what you want or need. Therefore, prior to executing Elixir, the script will source
140-
`~/.config/elixir_ls/setup.sh`, if available. The environment variable `ELS_MODE` is set to either `debugger` or
141-
`language_server` to help you decide what to do inside the script, if needed.
140+
`$XDG_CONFIG_HOME/elixir_ls/setup.sh` (e.g. `~/.config/elixir_ls/setup.sh`), if available. The environment variable
141+
`ELS_MODE` is set to either `debugger` or `language_server` to help you decide what to do inside the script, if needed.
142142

143143
## Acknowledgements and related projects
144144

apps/elixir_ls_utils/priv/launch.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ then
2727
fi
2828
;;
2929
*)
30-
# We have an arg2, so we got relaunched. Therefore, e're running in
31-
# a shell that can asdf-vm.
30+
# We have an arg2, so we got relaunched. Therefore, we're running in a
31+
# shell that supports asdf-vm.
3232
. "${asdf_vm}"
3333
;;
3434
esac
@@ -39,7 +39,7 @@ fi
3939
# give them the chance here. ELS_MODE will be set for
4040
# the really complex stuff. Use an XDG compliant path.
4141

42-
els_setup="${HOME}/.config/elixir_ls/setup.sh"
42+
els_setup="${XDG_CONFIG_HOME:-~/.config}/elixir_ls/setup.sh"
4343
if test -f "${els_setup}"
4444
then
4545
. "${els_setup}"

0 commit comments

Comments
 (0)