Skip to content

Commit

Permalink
Merge pull request #72 from savq/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
savq authored Aug 20, 2021
2 parents d28f9c5 + d814241 commit ab1cc2c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# to tag files
doc/tags
8 changes: 3 additions & 5 deletions lua/paq.lua
Original file line number Diff line number Diff line change
Expand Up @@ -149,14 +149,12 @@ local function remove(packdir)
end
end
for name, dir in pairs(to_rm) do
call_proc("rm", {"-r", "-f", dir}, packdir, function(ok)
last_ops[name] = "remove"
report("remove", ok and "ok" or "err", name, c)
end)
if name ~= "paq-nvim" then
vim.fn.delete(dir,"rf")
end
end
end


local function list()
local installed = vim.tbl_filter(function(name) return packages[name].exists end, vim.tbl_keys(packages))
local removed = vim.tbl_filter(function(name) return last_ops[name] == "remove" end, vim.tbl_keys(last_ops))
Expand Down

0 comments on commit ab1cc2c

Please # to comment.