new: nvim: rewrite julials managing scripts with julia for cross-platform compatibility

This commit is contained in:
qwjyh 2023-10-13 20:44:34 +09:00
parent 5c27c02e69
commit 2497b9b54d
3 changed files with 33 additions and 1 deletions

View file

@ -0,0 +1,16 @@
#!/usr/bin/julia
project_path = joinpath(homedir(), ".julia", "environments", "nvim-lspconfig")
if !ispath(project_path)
try
mkdir(project_path)
@info "Created $(project_path)"
catch e
@error e
@error dump(e)
throw(e)
end
end
cmd = `julia --project=$(project_path) $(@__DIR__)/add_dependencies.jl`
@info cmd
run(cmd)