diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9264ef3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +# to tag files +doc/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) 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))