-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.lua
40 lines (36 loc) · 1.54 KB
/
config.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
return {
mappings = {
-- Each key is grouped in a buffer. It's fine to use the same
-- mapping in different keys. eg: `diff` and `comments` can
-- share a common mapping.
diff = { -- Mappings for the diff view.
-- Show a comment under the current cursor (cc would do the same).
show_comment = "cs",
-- Add a new comment under the cursor. This will open the thread
-- of any existing comments.
add_comment = "cc",
-- Skip to the next comment in the diff (goes to EOF if none).
next_comment = "cn",
-- Go to next file (hunk) in diff, separated by diff headers (@@ ... @@)
next_hunk = "ch",
-- Goes to the file of the diff the cursor is under.
goto_file = "cf",
-- If a window is tagged, the preview will show in that window, and
-- the cursor will remain in the diff. No effect at all if no window
-- is tagged.
preview_file = "cp"
},
description = { -- Mappings for when the cursor is in the PR description.
-- Edit the PR description.
edit = "ce"
},
comments = { -- Mappings for when viewing a thread
-- Draft a reply to a comment. Opens a new diff.
reply = "cc"
},
action = { -- Mappings for when inserting text (comments, editing, etc).
-- Execute the action (submit a comment, save an update, etc).
submit = "<C-y>"
}
}
}