@@ -50,13 +50,15 @@ A few of the most popular options are highlighted below.
50
50
51
51
Codeium provides the following functions to control suggestions:
52
52
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> ` |
60
62
61
63
Codeium's default keybindings can be disabled by setting
62
64
@@ -77,6 +79,8 @@ If you'd like to bind the actions above to different keys, this might look somet
77
79
78
80
``` vim
79
81
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()
80
84
imap <C-;> <Cmd>call codeium#CycleCompletions(1)<CR>
81
85
imap <C-,> <Cmd>call codeium#CycleCompletions(-1)<CR>
82
86
imap <C-x> <Cmd>call codeium#Clear()<CR>
0 commit comments