fix(config): only enable rocks if luarocks is installed

This commit is contained in:
Micah Halter 2024-06-24 15:00:25 -04:00
commit 4e17f856e9
No known key found for this signature in database
GPG key ID: 4224A6EA9A8CAAA8

View file

@ -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/",
},