mirror of
https://codeberg.org/qwjyh/dotfiles.git
synced 2025-06-26 19:29:20 +09:00
new: nvim: rewrite julials managing scripts with julia for cross-platform compatibility
This commit is contained in:
parent
5c27c02e69
commit
2497b9b54d
3 changed files with 33 additions and 1 deletions
16
bin/neovim/setup_julials.jl
Normal file
16
bin/neovim/setup_julials.jl
Normal 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)
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue