Skip to content

Commit 72f89c8

Browse files
saranshsainiSaransh Saini
and
Saransh Saini
authored
update readme (Exafunction#436)
Co-authored-by: Saransh Saini <[email protected]>
1 parent 0b74f27 commit 72f89c8

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

README.md

+11-7
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,15 @@ A few of the most popular options are highlighted below.
5050

5151
Codeium provides the following functions to control suggestions:
5252

53-
| Action | Function | Default Binding |
54-
| --------------------------- | ------------------------------ | --------------- |
55-
| Clear current suggestion | `codeium#Clear()` | `<C-]>` |
56-
| Next suggestion | `codeium#CycleCompletions(1)` | `<M-]>` |
57-
| Previous suggestion | `codeium#CycleCompletions(-1)` | `<M-[>` |
58-
| Insert suggestion | `codeium#Accept()` | `<Tab>` |
59-
| Manually trigger suggestion | `codeium#Complete()` | `<M-Bslash>` |
53+
| Action | Function | Default Binding |
54+
| --------------------------- | ------------------------------ | --------------- |
55+
| Clear current suggestion | `codeium#Clear()` | `<C-]>` |
56+
| Next suggestion | `codeium#CycleCompletions(1)` | `<M-]>` |
57+
| Previous suggestion | `codeium#CycleCompletions(-1)` | `<M-[>` |
58+
| Insert suggestion | `codeium#Accept()` | `<Tab>` |
59+
| Manually trigger suggestion | `codeium#Complete()` | `<M-Bslash>` |
60+
| Accept word from suggestion | `codeium#AcceptNextWord()` | `<C-k>` |
61+
| Accept line from suggestion | `codeium#AcceptNextLine()` | `<C-l>` |
6062

6163
Codeium's default keybindings can be disabled by setting
6264

@@ -77,6 +79,8 @@ If you'd like to bind the actions above to different keys, this might look somet
7779

7880
```vim
7981
imap <script><silent><nowait><expr> <C-g> codeium#Accept()
82+
imap <script><silent><nowait><expr> <C-h> codeium#AcceptNextWord()
83+
imap <script><silent><nowait><expr> <C-j> codeium#AcceptNextLine()
8084
imap <C-;> <Cmd>call codeium#CycleCompletions(1)<CR>
8185
imap <C-,> <Cmd>call codeium#CycleCompletions(-1)<CR>
8286
imap <C-x> <Cmd>call codeium#Clear()<CR>

0 commit comments

Comments
 (0)