2023-10-06 19:36:59 +09:00
|
|
|
# How to manage Julia Language Server
|
2024-10-22 18:27:36 +09:00
|
|
|
This config use sysimage built with PackageCompiler to make language server starts faster.
|
|
|
|
Scripts in this directory are for management of the sysimage.
|
2023-10-06 19:36:59 +09:00
|
|
|
|
|
|
|
# description
|
|
|
|
all related process is done in project at `~/.julia/environments/nvim-lspconfig/`.
|
|
|
|
|
2024-10-22 18:27:36 +09:00
|
|
|
## install (or minor update of Julia)
|
2023-10-06 19:36:59 +09:00
|
|
|
```sh
|
2024-10-22 18:27:36 +09:00
|
|
|
julia ./setup_julials.jl
|
2023-10-06 19:36:59 +09:00
|
|
|
```
|
2024-10-22 18:27:36 +09:00
|
|
|
Run Language Server with `--tracecompile` option from any editor.
|
2023-10-06 19:36:59 +09:00
|
|
|
|
|
|
|
## update
|
|
|
|
```sh
|
2024-10-22 18:27:36 +09:00
|
|
|
julia ./update_julials.sh
|
2023-10-06 19:36:59 +09:00
|
|
|
```
|
|
|
|
which updates project, compile sysimage, then do precompile.
|
2024-10-22 18:27:36 +09:00
|
|
|
To use the sysimage, run Language Server with `-J ~/.julia/environments/nvim-lspconfig/` option.
|
2023-10-06 19:36:59 +09:00
|
|
|
|
|
|
|
# effect
|
|
|
|
Start up got about x3 - x4 faster.
|
|
|
|
It still takes some time to load packages though.
|
|
|
|
|