feat(ui): press <c-c> to abort any running tasks. Fixes #258

This commit is contained in:
Folke Lemaitre 2022-12-31 10:38:03 +01:00
commit d6b5d6e756
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
4 changed files with 69 additions and 4 deletions

View file

@ -62,6 +62,11 @@ function M.create()
self:update()
end)
vim.keymap.set("n", ViewConfig.keys.abort, function()
require("lazy.manage.process").abort()
return "<c-c>"
end, { silent = true, buffer = self.buf, expr = true })
-- plugin details
self:on_key(ViewConfig.keys.details, function()
local plugin = self.render:get_plugin()