Skip to content

Commit 0257122

Browse files
committed
[Neovim] Make PackRestore actually do it
If I'm going to use `PackRestore` from the YADM bootstrap script, I need it to apply the changes, not wait for someone to save a buffer.
1 parent 87ad368 commit 0257122

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.config/nvim/plugin/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ end, {
1717
})
1818

1919
vim.api.nvim_create_user_command("PackRestore", function()
20-
vim.pack.update(nil, { target = "lockfile" })
20+
vim.pack.update(nil, { target = "lockfile", force = true })
2121
end, {
2222
desc = "Restore the pack to the state of the lock file.",
2323
})

0 commit comments

Comments
 (0)