From 4e17f856e9971b25c8b5c3a9281322ee92bbf960 Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Mon, 24 Jun 2024 15:00:25 -0400 Subject: [PATCH] fix(config): only enable rocks if `luarocks` is installed --- lua/lazy/core/config.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lazy/core/config.lua b/lua/lazy/core/config.lua index 4d1aa2b..90f7924 100644 --- a/lua/lazy/core/config.lua +++ b/lua/lazy/core/config.lua @@ -46,7 +46,7 @@ M.defaults = { }, }, rocks = { - enabled = true, + enabled = vim.fn.executable("luarocks") == 1, root = vim.fn.stdpath("data") .. "/lazy-rocks", server = "https://nvim-neorocks.github.io/rocks-binaries/", },