From f2d90dedb45e35f7563d2ce3a31c6928f79de678 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Lavergne?= Date: Mon, 26 Feb 2024 20:17:22 -0500 Subject: [PATCH] Chat integration (#317) * Enable chat Starting point for chat integration: enabling the server. * Proper codeium#Chat() function This launches the browser the same way the initial authentication does. * Bugfix no-submit issue I forgot ide_telemetry_enabled=true which is needed for chat. * Automate workspace tracking * Don't search for project root until necessary * Whitespace fix * Whitespace fix * Document how to launch chat * Whitespace cleanup in README --- README.md | 27 +++++++++----- autoload/codeium.vim | 71 +++++++++++++++++++++++++++++++++++++ autoload/codeium/server.vim | 4 ++- 3 files changed, 92 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index b868749b..2054f9a3 100644 --- a/README.md +++ b/README.md @@ -50,13 +50,13 @@ A few of the most popular options are highlighted below. Codeium provides the following functions to control suggestions: -|Action|Function|Default Binding| -|---|---|---| -|Clear current suggestion| `codeium#Clear()` |``| -|Next suggestion| `codeium#CycleCompletions(1)` |``| -|Previous suggestion| `codeium#CycleCompletions(-1)` |``| -|Insert suggestion| `codeium#Accept()` |``| -|Manually trigger suggestion| `codeium#Complete()` |``| +| Action | Function | Default Binding | +| --------------------------- | ------------------------------ | --------------- | +| Clear current suggestion | `codeium#Clear()` | `` | +| Next suggestion | `codeium#CycleCompletions(1)` | `` | +| Previous suggestion | `codeium#CycleCompletions(-1)` | `` | +| Insert suggestion | `codeium#Accept()` | `` | +| Manually trigger suggestion | `codeium#Complete()` | `` | Codeium's default keybindings can be disabled by setting @@ -75,7 +75,6 @@ use the `g:codeium_no_map_tab` option. If you'd like to bind the actions above to different keys, this might look something like the following in Vim: - ```vim imap