fix(julia): update eglot environment discovery

This commit is contained in:
Edmund Miller 2022-07-18 15:38:17 -05:00
parent 6074fc3aa8
commit 5ab4527b18
No known key found for this signature in database
GPG key ID: BD387FF7BC10AA9D

View file

@ -91,7 +91,9 @@
:after eglot
:preface
;; Prevent auto-install of LanguageServer.jl
(setq eglot-jl-language-server-project "~/.julia/environments/v1.6")
(setq eglot-jl-language-server-project
(or (car (last (doom-glob "~/.julia/environments/v*")))
"~/.julia/environments/v1.6"))
:init
;; Prevent timeout while installing LanguageServer.jl
(setq-hook! 'julia-mode-hook eglot-connect-timeout (max eglot-connect-timeout 60))