From 3d5d391b2466d7c949876ea61dade93b31e101b6 Mon Sep 17 00:00:00 2001 From: Paul-Henri Froidmont Date: Sat, 13 Dec 2025 04:10:45 +0100 Subject: [PATCH] Remove avante --- modules/editor/vim/lua/plugins/avante.lua | 18 ------------------ modules/editor/vim/lua/plugins/opencode.lua | 8 ++++---- modules/editor/vim/vim.nix | 5 ----- 3 files changed, 4 insertions(+), 27 deletions(-) delete mode 100644 modules/editor/vim/lua/plugins/avante.lua diff --git a/modules/editor/vim/lua/plugins/avante.lua b/modules/editor/vim/lua/plugins/avante.lua deleted file mode 100644 index 5c36a9d..0000000 --- a/modules/editor/vim/lua/plugins/avante.lua +++ /dev/null @@ -1,18 +0,0 @@ -return { - "yetone/avante.nvim", - opts = { - provider = "opencode", - { - acp_providers = { - ["opencode"] = { - command = "opencode", - args = { "acp" } - } - } - }, - }, - keys = { - { "aa", "AvanteAsk", mode = { "n", "v" }, desc = "Ask Avante" }, - { "ae", "AvanteEdit", mode = { "n", "v" }, desc = "Edit Avante" }, - }, -} diff --git a/modules/editor/vim/lua/plugins/opencode.lua b/modules/editor/vim/lua/plugins/opencode.lua index ebcb11b..8ac2413 100644 --- a/modules/editor/vim/lua/plugins/opencode.lua +++ b/modules/editor/vim/lua/plugins/opencode.lua @@ -17,19 +17,19 @@ return { } vim.o.autoread = true - vim.keymap.set({ "n", "x" }, "oa", function() + vim.keymap.set({ "n", "x" }, "aa", function() require("opencode").ask("@this: ", { submit = true }) end, { desc = "Ask opencode" }) - vim.keymap.set({ "n", "x" }, "oo", function() + vim.keymap.set({ "n", "x" }, "ao", function() require("opencode").select() end, { desc = "Execute opencode action…" }) - vim.keymap.set({ "n", "x" }, "os", function() + vim.keymap.set({ "n", "x" }, "as", function() require("opencode").prompt("@this") end, { desc = "Add to opencode" }) - vim.keymap.set({ "n", "t" }, "o.", function() + vim.keymap.set({ "n", "t" }, "a.", function() require("opencode").toggle() end, { desc = "Toggle opencode" }) end, diff --git a/modules/editor/vim/vim.nix b/modules/editor/vim/vim.nix index 8a70a60..c8ba9dd 100644 --- a/modules/editor/vim/vim.nix +++ b/modules/editor/vim/vim.nix @@ -1,5 +1,4 @@ { - inputs, config, lib, pkgs, @@ -135,9 +134,6 @@ in vim-startuptime yazi-nvim zk-nvim - avante-nvim - blink-cmp-avante - img-clip-nvim (pkgs.vimUtils.buildVimPlugin { pname = "opencode.nvim"; @@ -238,7 +234,6 @@ in { import = "lazyvim.plugins.extras.lang.elixir" }, { import = "lazyvim.plugins.extras.test.core" }, { import = "lazyvim.plugins.extras.lang.typescript" }, - { import = "lazyvim.plugins.extras.ai.avante" }, -- import/override with your plugins { import = "plugins" }, },