Skip to content

Commit

Permalink
fix(ui): return abort key instead of <c-c>
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Feb 17, 2023
1 parent 8186cc5 commit 5cfe156
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lua/lazy/view/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lua/lazy/view/render.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 5cfe156

Please sign in to comment.