Skip to content

Commit

Permalink
Update lazy.lua:
Browse files Browse the repository at this point in the history
  • Loading branch information
brainfucksec committed Oct 12, 2024
1 parent 4e09399 commit 48a10a4
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion nvim/lua/core/lazy.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,31 @@ end
vim.opt.rtp:prepend(lazypath)

-- Use a protected call so we don't error out on first use
local status_ok, lazy = pcall(require, 'lazy')
local status_ok, lazy = pcall(require, 'lazy')require('lazy')
if not status_ok then
return
end

-- Start setup
lazy.setup({
pkg = {
enabled = true,
cache = vim.fn.stdpath("state") .. "/lazy/pkg-cache.lua",
-- the first package source that is found for a plugin will be used.
sources = {
"lazy",
"rockspec", -- will only be used when rocks.enabled is true
"packspec",
},
},
rocks = {
-- disable rockspec
-- see: https://github.com/folke/lazy.nvim?tab=readme-ov-file#%EF%B8%8F-requirements
-- https://github.com/folke/lazy.nvim/issues/1576
enabled = false,
root = vim.fn.stdpath("data") .. "/lazy-rocks",
server = "https://nvim-neorocks.github.io/rocks-binaries/",
},
spec = {
--[[
Colorscheme:
Expand Down

0 comments on commit 48a10a4

Please sign in to comment.