Fix sync not completing when some packages are disabled, and make readme pretty

This commit is contained in:
phosphene47
2021-12-12 20:06:44 +11:00
parent 6bcdc96552
commit 63be58d87d
2 changed files with 9 additions and 0 deletions

View File

@ -1,5 +1,10 @@
# dep # dep
[![License](https://img.shields.io/github/license/chiyadev/dep)](License)
[![Maintainer](https://img.shields.io/badge/maintainer-phosphene47-pink)][4]
[![Issues](https://img.shields.io/github/issues/chiyadev/dep.svg)][8]
[![Contributors](https://img.shields.io/github/contributors/chiyadev/dep.svg)][9]
> This readme is a work in progress. > This readme is a work in progress.
A versatile, declarative and correct [neovim][2] package manager in [lua][3]. 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/ [5]: https://git-scm.com/
[6]: https://github.com/nvim-telescope/telescope.nvim [6]: https://github.com/nvim-telescope/telescope.nvim
[7]: https://github.com/tpope/vim-fugitive [7]: https://github.com/tpope/vim-fugitive
[8]: https://GitHub.com/chiyadev/dep/issues
[9]: https://github.com/chiyadev/dep/graphs/contributors

View File

@ -470,11 +470,13 @@ end
local function sync(package, cb) local function sync(package, cb)
if not package.enabled then if not package.enabled then
cb()
return return
end end
if package.exists then if package.exists then
if package.pin then if package.pin then
cb()
return return
end end