Skip to content

Commit 5cfe156

Browse files
committedFeb 17, 2023
fix(ui): return abort key instead of <c-c>
1 parent 8186cc5 commit 5cfe156

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎lua/lazy/view/init.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ function M.create()
7777

7878
vim.keymap.set("n", ViewConfig.keys.abort, function()
7979
require("lazy.manage.process").abort()
80-
return "<c-c>"
80+
return ViewConfig.keys.abort
8181
end, { silent = true, buffer = self.buf, expr = true })
8282

8383
-- plugin details

‎lua/lazy/view/render.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ end
160160
function M:help()
161161
self:append("Help", "LazyH2"):nl():nl()
162162

163-
self:append("Use "):append("<C-c>", "LazySpecial"):append(" to abort all running tasks."):nl():nl()
163+
self:append("Use "):append(ViewConfig.keys.abort, "LazySpecial"):append(" to abort all running tasks."):nl():nl()
164164

165165
self:append("You can press "):append("<CR>", "LazySpecial"):append(" on a plugin to show its details."):nl():nl()
166166

0 commit comments

Comments
 (0)
Please sign in to comment.