From 7061aba21b46a6c9a5dc4cb8a6c1960c00a56fd6 Mon Sep 17 00:00:00 2001 From: Mateusz Sip Date: Wed, 20 May 2026 13:17:45 +0200 Subject: [PATCH 1/3] feat(cli): add support for antigravity CLI --- README.md | 8 +++++--- doc/sidekick.nvim.txt | 10 +++++++--- lua/sidekick/config.lua | 7 ++++--- sk/cli/antigravity.lua | 13 +++++++++++++ tests/fixtures/keymaps.lua | 8 ++++++++ 5 files changed, 37 insertions(+), 9 deletions(-) create mode 100644 sk/cli/antigravity.lua diff --git a/README.md b/README.md index 675ee135..26fccdd1 100644 --- a/README.md +++ b/README.md @@ -333,9 +333,10 @@ local defaults = { --- For default configs, see https://github.com/folke/sidekick.nvim/tree/main/sk/cli ---@type table tools = { - aider = {}, - amazon_q = {}, - claude = {}, + aider = {}, + amazon_q = {}, + antigravity = {}, + claude = {}, codex = {}, copilot = {}, crush = {}, @@ -718,6 +719,7 @@ Sidekick preconfigures popular AI CLIs. Run `:checkhealth sidekick` to see which | ----------------------------------------------------------- | -------------------- | ---------------------------------------------------------------------------------------------------------------------- | | [`aider`](https://github.com/Aider-AI/aider) | AI pair programmer | `pip install aider-chat` or `pipx install aider-chat` | | [`amazon_q`](https://github.com/aws/amazon-q-developer-cli) | Amazon Q Developer | [Install guide](https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/command-line-getting-started-installing.html) | +| [`antigravity`](https://antigravity.google/docs/cli-overview) | Google Antigravity | See [documentation](https://antigravity.google/docs/cli-overview) | | [`claude`](https://github.com/anthropics/claude-code) | Claude Code CLI | [See Claude Code docs](https://code.claude.com/docs/en/overview#get-started) | [`codex`](https://github.com/openai/codex) | OpenAI Codex CLI | See [OpenAI docs](https://github.com/openai/codex) | | [`copilot`](https://github.com/github/copilot-cli) | GitHub Copilot CLI | `npm install -g @githubnext/github-copilot-cli` | diff --git a/doc/sidekick.nvim.txt b/doc/sidekick.nvim.txt index 49db9c55..a6c0652b 100644 --- a/doc/sidekick.nvim.txt +++ b/doc/sidekick.nvim.txt @@ -335,9 +335,10 @@ Default settings ~ --- For default configs, see https://github.com/folke/sidekick.nvim/tree/main/sk/cli ---@type table tools = { - aider = {}, - amazon_q = {}, - claude = {}, + aider = {}, + amazon_q = {}, + antigravity = {}, + claude = {}, codex = {}, copilot = {}, crush = {}, @@ -637,6 +638,9 @@ which ones are installed. amazon_q Amazon Q Install guide Developer + antigravity Google See documentation + Antigravity + claude Claude Code See Claude Code docs CLI diff --git a/lua/sidekick/config.lua b/lua/sidekick/config.lua index d30e92e8..f19d659e 100644 --- a/lua/sidekick/config.lua +++ b/lua/sidekick/config.lua @@ -104,9 +104,10 @@ local defaults = { -- stylua: ignore ---@type table tools = { - aider = {}, - amazon_q = {}, - claude = {}, + aider = {}, + amazon_q = {}, + antigravity = {}, + claude = {}, codex = {}, copilot = {}, crush = {}, diff --git a/sk/cli/antigravity.lua b/sk/cli/antigravity.lua new file mode 100644 index 00000000..5d590f39 --- /dev/null +++ b/sk/cli/antigravity.lua @@ -0,0 +1,13 @@ +---@type sidekick.cli.Config +return { + cmd = { "agy" }, + is_proc = "\\", + url = "https://antigravity.google/docs/cli-overview", + resume = { "--continue" }, + continue = { "--continue" }, + format = function(text) + require("sidekick.text").transform(text, function(str) + return str:find("[^%w/_%.%-]") and ('"' .. str .. '"') or str + end, "SidekickLocFile") + end, +} diff --git a/tests/fixtures/keymaps.lua b/tests/fixtures/keymaps.lua index 83873792..16d3a297 100644 --- a/tests/fixtures/keymaps.lua +++ b/tests/fixtures/keymaps.lua @@ -33,6 +33,14 @@ local keymaps = { ["dd"] = "Delete the current line (vi normal mode)", ["u"] = "Undo last change (vi normal mode)", }, + antigravity = { + [""] = "Close any open dialog or suggestion popup", + [""] = "Cancel the ongoing request or generation", + [""] = "Exit the Antigravity CLI", + ["\\"] = "Insert a newline in the prompt without sending", + [""] = "Cycle to previous input in history", + [""] = "Cycle to next input in history", + }, claude = { [""] = "Rewind the code and conversation to a previous checkpoint", [""] = "Toggle extended thinking mode On/Off", From 6defdcd3f6f1ddaaca51cd1901f2ab915f8c1f00 Mon Sep 17 00:00:00 2001 From: Mateusz Sip Date: Wed, 20 May 2026 13:20:47 +0200 Subject: [PATCH 2/3] formatting --- doc/sidekick.nvim.txt | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/doc/sidekick.nvim.txt b/doc/sidekick.nvim.txt index a6c0652b..3320f618 100644 --- a/doc/sidekick.nvim.txt +++ b/doc/sidekick.nvim.txt @@ -339,15 +339,15 @@ Default settings ~ amazon_q = {}, antigravity = {}, claude = {}, - codex = {}, - copilot = {}, - crush = {}, - cursor = {}, - gemini = {}, - grok = {}, - opencode = {}, - pi = {}, - qwen = {}, + codex = {}, + copilot = {}, + crush = {}, + cursor = {}, + gemini = {}, + grok = {}, + opencode = {}, + pi = {}, + qwen = {}, }, --- Add custom context. See `lua/sidekick/context/init.lua` ---@type table From 8350ac42bff9fe9afdcd0438534010ac97739dd1 Mon Sep 17 00:00:00 2001 From: Mateusz Sip Date: Wed, 20 May 2026 13:22:20 +0200 Subject: [PATCH 3/3] formatting --- lua/sidekick/config.lua | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lua/sidekick/config.lua b/lua/sidekick/config.lua index f19d659e..91f00cbc 100644 --- a/lua/sidekick/config.lua +++ b/lua/sidekick/config.lua @@ -108,15 +108,15 @@ local defaults = { amazon_q = {}, antigravity = {}, claude = {}, - codex = {}, - copilot = {}, - crush = {}, - cursor = {}, - gemini = {}, - grok = {}, - opencode = {}, - pi = {}, - qwen = {}, + codex = {}, + copilot = {}, + crush = {}, + cursor = {}, + gemini = {}, + grok = {}, + opencode = {}, + pi = {}, + qwen = {}, }, --- Add custom context. See `lua/sidekick/context/init.lua` ---@type table