Skip to content

Commit

Permalink
feat: add rest of installer code
Browse files Browse the repository at this point in the history
  • Loading branch information
vhyrro committed Apr 18, 2024
1 parent 4fd4599 commit 8508e5a
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions bootstrap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,21 @@ local function set_up_luarocks(install_path)
end

assert(set_up_luarocks(install_path), "failed to install luarocks! Please try again :)")

vim.notify("Installing rocks.nvim...")

local sc = vim.system({
luarocks_binary,
"--lua-version=5.1",
"--tree=" .. install_path,
"--server='https://nvim-neorocks.github.io/rocks-binaries/'",
"install",
"rocks.nvim",
}):wait()

if sc.code ~= 0 then
notify_output("Installing rocks.nvim failed:", sc, vim.log.levels.ERROR)
return
end

vim.print("rocks.nvim installed successfully!")

0 comments on commit 8508e5a

Please sign in to comment.