Skip to content
This repository was archived by the owner on Apr 16, 2024. It is now read-only.

Commit 5038823

Browse files
author
connorgmeean
committed
fix(core): Lazynvim error handling pinned commits
1 parent b87ba4c commit 5038823

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lua/doom/core/modules.lua

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,14 @@ modules.load_modules = function()
8282
local spec = vim.deepcopy(packer_spec)
8383

8484
-- Set/unset frozen packer dependencies
85-
if type(spec.version) == "table" then
85+
if type(spec.commit) == "table" then
8686
-- Commit can be a table of values, where the keys indicate
8787
-- which neovim version is required.
8888
spec.commit = utils.pick_compatible_field(spec.commit)
8989
end
9090

91-
if not doom.freeze_dependencies then
92-
spec.commit = nil
93-
end
91+
-- Only pin dependencies if doom.freeze_dependencies is true
92+
spec.lock = spec.commit and doom.freeze_dependencies
9493

9594
-- Save module spec to be initialised later
9695
table.insert(doom.packages, spec)

0 commit comments

Comments
 (0)