Fix sync not completing when some packages are disabled, and make readme pretty
This commit is contained in:
@ -1,5 +1,10 @@
|
||||
# dep
|
||||
|
||||
[](License)
|
||||
[][4]
|
||||
[][8]
|
||||
[][9]
|
||||
|
||||
> This readme is a work in progress.
|
||||
|
||||
A versatile, declarative and correct [neovim][2] package manager in [lua][3].
|
||||
@ -409,3 +414,5 @@ dep is licensed under the [MIT License](LICENSE).
|
||||
[5]: https://git-scm.com/
|
||||
[6]: https://github.com/nvim-telescope/telescope.nvim
|
||||
[7]: https://github.com/tpope/vim-fugitive
|
||||
[8]: https://GitHub.com/chiyadev/dep/issues
|
||||
[9]: https://github.com/chiyadev/dep/graphs/contributors
|
||||
|
@ -470,11 +470,13 @@ end
|
||||
|
||||
local function sync(package, cb)
|
||||
if not package.enabled then
|
||||
cb()
|
||||
return
|
||||
end
|
||||
|
||||
if package.exists then
|
||||
if package.pin then
|
||||
cb()
|
||||
return
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user