From 16efb1c9e5d217db86c325294f5695cad4304fe7 Mon Sep 17 00:00:00 2001 From: Prad Nukala Date: Wed, 8 Oct 2025 22:47:06 -0400 Subject: [PATCH] refactor(nvim): simplify lazy loading configuration --- lua/community.lua | 1 + lua/plugins/sidekick.lua | 73 ---------------------------------------- 2 files changed, 1 insertion(+), 73 deletions(-) delete mode 100644 lua/plugins/sidekick.lua diff --git a/lua/community.lua b/lua/community.lua index 5456736..178d4af 100644 --- a/lua/community.lua +++ b/lua/community.lua @@ -6,6 +6,7 @@ return { "AstroNvim/astrocommunity", version = false, -- Use latest astrocommunity + { import = "astrocommunity.ai.oopencode-nvim" }, { import = "astrocommunity.pack.astro" }, { import = "astrocommunity.pack.bash" }, { import = "astrocommunity.pack.biome" }, diff --git a/lua/plugins/sidekick.lua b/lua/plugins/sidekick.lua deleted file mode 100644 index 3a1bcdb..0000000 --- a/lua/plugins/sidekick.lua +++ /dev/null @@ -1,73 +0,0 @@ -return { - "folke/sidekick.nvim", - opts = { - -- add any options here - cli = { - mux = { - backend = "zellij", - enabled = true, - }, - }, - }, - -- stylua: ignore - keys = { - { - "", - function() - -- if there is a next edit, jump to it, otherwise apply it if any - if not require("sidekick").nes_jump_or_apply() then - return "" -- fallback to normal tab - end - end, - expr = true, - desc = "Goto/Apply Next Edit Suggestion", - }, - { - "", - function() require("sidekick.cli").toggle() end, - desc = "Sidekick Toggle", - mode = { "n", "t", "i", "x" }, - }, - { - "aa", - function() require("sidekick.cli").toggle() end, - desc = "Sidekick Toggle CLI", - }, - { - "as", - function() require("sidekick.cli").select() end, - -- Or to select only installed tools: - -- require("sidekick.cli").select({ filter = { installed = true } }) - desc = "Select CLI", - }, - { - "at", - function() require("sidekick.cli").send({ msg = "{this}" }) end, - mode = { "x", "n" }, - desc = "Send This", - }, - { - "af", - function() require("sidekick.cli").send({ msg = "{file}" }) end, - desc = "Send File", - }, - { - "av", - function() require("sidekick.cli").send({ msg = "{selection}" }) end, - mode = { "x" }, - desc = "Send Visual Selection", - }, - { - "ap", - function() require("sidekick.cli").prompt() end, - mode = { "n", "x" }, - desc = "Sidekick Select Prompt", - }, - -- Example of a keybinding to open Claude directly - { - "ac", - function() require("sidekick.cli").toggle({ name = "claude", focus = true }) end, - desc = "Sidekick Toggle Claude", - }, - }, -}