aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergio A. Vargas <savargasqu+git@unal.edu.co>2021-08-21 03:40:31 +0530
committerGitHub <noreply@github.com>2021-08-21 03:40:31 +0530
commitab1cc2c9c6392e8af42bc84b4945afc93706fae5 (patch)
tree2f0668bf1648c479a402f6c6abd7da2f883d42ef
parentd28f9c5c0d6a7f600e765463e60caa4294201053 (diff)
parentd8142419b044286e47548baf860e7a6234cba859 (diff)
downloadpaq-ab1cc2c9c6392e8af42bc84b4945afc93706fae5.tar.gz
Merge pull request #72 from savq/dev
Dev
-rw-r--r--.gitignore2
-rw-r--r--lua/paq.lua8
2 files changed, 5 insertions, 5 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..9264ef3
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
1# to tag files
2doc/tags
diff --git a/lua/paq.lua b/lua/paq.lua
index 434c457..f308adc 100644
--- a/lua/paq.lua
+++ b/lua/paq.lua
@@ -149,14 +149,12 @@ local function remove(packdir)
149 end 149 end
150 end 150 end
151 for name, dir in pairs(to_rm) do 151 for name, dir in pairs(to_rm) do
152 call_proc("rm", {"-r", "-f", dir}, packdir, function(ok) 152 if name ~= "paq-nvim" then
153 last_ops[name] = "remove" 153 vim.fn.delete(dir,"rf")
154 report("remove", ok and "ok" or "err", name, c) 154 end
155 end)
156 end 155 end
157end 156end
158 157
159
160local function list() 158local function list()
161 local installed = vim.tbl_filter(function(name) return packages[name].exists end, vim.tbl_keys(packages)) 159 local installed = vim.tbl_filter(function(name) return packages[name].exists end, vim.tbl_keys(packages))
162 local removed = vim.tbl_filter(function(name) return last_ops[name] == "remove" end, vim.tbl_keys(last_ops)) 160 local removed = vim.tbl_filter(function(name) return last_ops[name] == "remove" end, vim.tbl_keys(last_ops))