mirror of
https://codeberg.org/qwjyh/dotfiles.git
synced 2025-06-26 19:29:20 +09:00
move: neovim: moved julials related(update, setup) scripts
This commit is contained in:
parent
a4f74fc80a
commit
9e255a4477
3 changed files with 0 additions and 0 deletions
15
bin/neovim/add_dependencies.jl
Normal file
15
bin/neovim/add_dependencies.jl
Normal file
|
@ -0,0 +1,15 @@
|
|||
# Add dependencies to Language Server project
|
||||
# TODO: automatically list up necessary packages
|
||||
using Pkg
|
||||
|
||||
# add LanguageServer.jl
|
||||
Pkg.add("LanguageServer")
|
||||
|
||||
# add dependencies of LanguageServer.jl
|
||||
pkg_ls = Pkg.project().dependencies["LanguageServer"]
|
||||
pkg_ls_deps = Pkg.dependencies()[pkg_ls].dependencies |> keys
|
||||
foreach(Pkg.add, pkg_ls_deps)
|
||||
|
||||
# add extra dependencies
|
||||
foreach(Pkg.add, ["Logging", "Sockets", "DataStructures"]) # these packages are manually collected
|
||||
|
2
bin/neovim/setup_julials.sh
Executable file
2
bin/neovim/setup_julials.sh
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/usr/bin/bash -x
|
||||
julia --project=~/.julia/environments/nvim-lspconfig ./add_dependencies.jl
|
7
bin/neovim/update_julials.sh
Executable file
7
bin/neovim/update_julials.sh
Executable 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()'
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue