fix(ui): return abort key instead of `<c-c>`

This commit is contained in:
Folke Lemaitre 2023-02-17 13:41:16 +01:00
parent 8186cc5db3
commit 5cfe1560c5
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
2 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@ function M.create()
vim.keymap.set("n", ViewConfig.keys.abort, function()
require("lazy.manage.process").abort()
return "<c-c>"
return ViewConfig.keys.abort
end, { silent = true, buffer = self.buf, expr = true })
-- plugin details

View File

@ -160,7 +160,7 @@ end
function M:help()
self:append("Help", "LazyH2"):nl():nl()
self:append("Use "):append("<C-c>", "LazySpecial"):append(" to abort all running tasks."):nl():nl()
self:append("Use "):append(ViewConfig.keys.abort, "LazySpecial"):append(" to abort all running tasks."):nl():nl()
self:append("You can press "):append("<CR>", "LazySpecial"):append(" on a plugin to show its details."):nl():nl()