new: nvim: add julials sysimage gen scripts for faster startup

This commit is contained in:
qwjyh 2023-10-06 17:56:04 +09:00
parent 56b6f49a40
commit a4f74fc80a
4 changed files with 63 additions and 1 deletions

View file

@ -0,0 +1,7 @@
#!/usr/bin/bash -x
cd ~/.julia/environments/nvim-lspconfig/ || return 1
julia --project=. -e 'using Pkg; Pkg.update()'
cat precompile_exec_head.jl tracecompile.jl > precompile_exec.jl
julia --project=. -e 'using PackageCompiler; create_sysimage(["LanguageServer"], sysimage_path="sys-ls.so", precompile_execution_file=["precompile_exec.jl"])'
julia --project=. -J sys-ls.so -e 'using Pkg; Pkg.precompile()'