From 84fa3b8363c8abe2827e8c1fb57a9e057dc233b8 Mon Sep 17 00:00:00 2001 From: venus Date: Fri, 14 Aug 2026 04:08:16 -0500 Subject: [PATCH] added an antigravity plugin and custom keybind for integrated support --- lua/keybinds.lua | 1 + lua/plugins/antigravity.lua | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 lua/plugins/antigravity.lua diff --git a/lua/keybinds.lua b/lua/keybinds.lua index c4b4c2c..077b3ba 100644 --- a/lua/keybinds.lua +++ b/lua/keybinds.lua @@ -86,6 +86,7 @@ vim.keymap.set("n", "" ,"m'ggyG''" ,{ desc = "[Y]ank whole file" }) vim.keymap.set("n", "sr" ,[[:%s/\<\>//gI]] ,{ desc = "[S]earch/[R]eplace word under cursor" }) -- PLUGIN KEYBINDS +vim.keymap.set({ "n", "v" } ,"ag" ,"Antigravity" ,{ desc = "Open Antigravity" }) vim.keymap.set({ "n", "v" } ,"aa" ,"CodeCompanionActions" ,{ desc = "CodeCompanion - Actions" }) vim.keymap.set({ "n", "v" } ,"ac" ,"CodeCompanionChat Toggle" ,{ desc = "CodeCompanion - Chat" }) vim.keymap.set({ "n", "v" } ,"ai" ,"CodeCompanion" ,{ desc = "CodeCompanion - Inline" }) diff --git a/lua/plugins/antigravity.lua b/lua/plugins/antigravity.lua new file mode 100644 index 0000000..944145b --- /dev/null +++ b/lua/plugins/antigravity.lua @@ -0,0 +1,13 @@ +return { + "NakLast/antigravity-cli.nvim", + config = function() + require("antigravity").setup({ + -- You can override the default command here if needed + cmd = "agy", + width_ratio = 0.4, + height_ratio = 0.8, + border = "rounded", + style = "vsplit", + }) + end +}