Skip to content

Commit

Permalink
feat: check for the existence of vhyrro/luarocks.nvim
Browse files Browse the repository at this point in the history
  • Loading branch information
vhyrro committed Mar 28, 2024
1 parent 645cd0c commit a5aa931
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lua/neorg/health.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,13 @@ return {
vim.health.ok("Default configuration for logger provided, Neorg will not output debug info.")
end
end

vim.health.info("Checking existence of dependencies...")

if (pcall(require, "lazy")) and not (pcall(require, "luarocks-nvim")) then
vim.health.error("Required dependency `vhyrro/luarocks.nvim` not found! Neither `theHamsta/nvim_rocks` nor `camspiers/luarocks` are compatible. Check installation instructions for how to fix the error.")
else
vim.health.ok("Using plugin manager other than lazy, no need for the `vhyrro/luarocks.nvim` dependency. If you are on an unsupported plugin manager you may still need the plugin for Neorg to function.")
end
end
}

0 comments on commit a5aa931

Please sign in to comment.