-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
* feat: accept next word and next line completions. The process of inserting suggestions is always roughly the same, so abstracted that into the `s:CompletionInserter` function. With that, refactored `codeium#Accept` and introduced `codeium#AcceptNextWord` and `codeium#AcceptNextLine`. Fixes #27 * feat: add default bindings for the new functions * refactor(AcceptNextWord): handle when completionParts is undefined
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,6 +58,12 @@ if !get(g:, 'codeium_disable_bindings') | |
if empty(mapcheck('<M-Bslash>', 'i')) | ||
imap <M-Bslash> <Plug>(codeium-complete) | ||
endif | ||
if empty(mapcheck('<C-Right>', 'i')) | ||
imap <script><silent><nowait><expr> <C-Right> codeium#AcceptNextWord() | ||
endif | ||
if empty(mapcheck('<Right>', 'i')) | ||
imap <script><silent><nowait><expr> <Right> codeium#AcceptNextLine() | ||
endif | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
Akulen
|
||
endif | ||
|
||
call s:SetStyle() | ||
|
this code disable right navigation on i-mode.