Skip to content

Commit

Permalink
feat: include plenary as a dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
vhyrro committed Mar 24, 2024
1 parent df6cc22 commit 6ea1eff
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions build.lua
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
-- This build.lua exists to bridge luarocks installation for lazy.nvim users.
-- It's main purposes are:
-- - Shelling out to luarocks.nvim for installation
-- - Installing neorg as a rock (including dependencies)
-- - Installing neorg's dependencies as rocks

-- Important note: we execute the build code in a vim.schedule
-- to defer the execution and ensure that the runtimepath is appropriately set.

vim.schedule(function()
local ok, luarocks = pcall(require, "luarocks.rocks")

assert(ok, "Unable to install neorg: required dependency `camspiers/luarocks` not found!")

-- local version = require("neorg.core.config").version
assert(ok, "Unable to install neorg: required dependency `vhyrro/luarocks.nvim` not found!")

luarocks.ensure({
"nvim-nio ~> 1.7",
"lua-utils.nvim == 1.0.2",
"plenary.nvim == 0.1.4",
})

require("neorg").setup_after_build()
Expand Down

0 comments on commit 6ea1eff

Please sign in to comment.