Added documentation to set julia envornment location for lsp server

lsp-julia-default-envornment is set by default to ~/.julia/environments/v1.0 .
To make the lsp server show completions for installed packages, the environment
location must be the same as that of the installed julia version enviornment.
Documentation was added to notify users to set the emacs variable to their
enviornment location.
This commit is contained in:
Diego Caples 2022-08-03 14:46:10 -06:00 committed by Maxi Wolff
parent 7d60d894a7
commit e7b871147f
1 changed files with 7 additions and 0 deletions

View File

@ -46,11 +46,18 @@ for installation, and then install this layer with:
(julia :variables julia-backend 'lsp)))
#+END_SRC
=LanguageServer.jl= tends to have a very long startup time. In the worst case,
=lsp-mode= might give up on the language server before its started, but
regardless usage of =lsp-mode= with Julia can cause long delays when first
opening files.
By default, the langage server looks for the julia enviornment in =~/.julia/enviornments/v1.0=.
However, unless julia 1.0 is being used, the enviornment path will be incorrect.
Code completions from imported packages will not work. To fix this, set =lsp-julia-default-environment=
to =~/.julia/enviornments/v<your julia version>=. For more information and configuration
options, see [[https://github.com/gdkrmr/lsp-julia][lsp-julia documentation]].
* Options
While =julia-mode= is perfectly usable without configuration or other packages,
you can choose to replace the default functionality of using [[https://github.com/tpapp/julia-repl/][julia-repl]] as the