Remove avante

This commit is contained in:
Paul-Henri Froidmont 2025-12-13 04:10:45 +01:00
parent 171623d9a4
commit 3d5d391b24
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE
3 changed files with 4 additions and 27 deletions

View file

@ -1,18 +0,0 @@
return {
"yetone/avante.nvim",
opts = {
provider = "opencode",
{
acp_providers = {
["opencode"] = {
command = "opencode",
args = { "acp" }
}
}
},
},
keys = {
{ "<leader>aa", "<cmd>AvanteAsk<CR>", mode = { "n", "v" }, desc = "Ask Avante" },
{ "<leader>ae", "<cmd>AvanteEdit<CR>", mode = { "n", "v" }, desc = "Edit Avante" },
},
}

View file

@ -17,19 +17,19 @@ return {
} }
vim.o.autoread = true vim.o.autoread = true
vim.keymap.set({ "n", "x" }, "<leader>oa", function() vim.keymap.set({ "n", "x" }, "<leader>aa", function()
require("opencode").ask("@this: ", { submit = true }) require("opencode").ask("@this: ", { submit = true })
end, { desc = "Ask opencode" }) end, { desc = "Ask opencode" })
vim.keymap.set({ "n", "x" }, "<leader>oo", function() vim.keymap.set({ "n", "x" }, "<leader>ao", function()
require("opencode").select() require("opencode").select()
end, { desc = "Execute opencode action…" }) end, { desc = "Execute opencode action…" })
vim.keymap.set({ "n", "x" }, "<leader>os", function() vim.keymap.set({ "n", "x" }, "<leader>as", function()
require("opencode").prompt("@this") require("opencode").prompt("@this")
end, { desc = "Add to opencode" }) end, { desc = "Add to opencode" })
vim.keymap.set({ "n", "t" }, "<leader>o.", function() vim.keymap.set({ "n", "t" }, "<leader>a.", function()
require("opencode").toggle() require("opencode").toggle()
end, { desc = "Toggle opencode" }) end, { desc = "Toggle opencode" })
end, end,

View file

@ -1,5 +1,4 @@
{ {
inputs,
config, config,
lib, lib,
pkgs, pkgs,
@ -135,9 +134,6 @@ in
vim-startuptime vim-startuptime
yazi-nvim yazi-nvim
zk-nvim zk-nvim
avante-nvim
blink-cmp-avante
img-clip-nvim
(pkgs.vimUtils.buildVimPlugin { (pkgs.vimUtils.buildVimPlugin {
pname = "opencode.nvim"; pname = "opencode.nvim";
@ -238,7 +234,6 @@ in
{ import = "lazyvim.plugins.extras.lang.elixir" }, { import = "lazyvim.plugins.extras.lang.elixir" },
{ import = "lazyvim.plugins.extras.test.core" }, { import = "lazyvim.plugins.extras.test.core" },
{ import = "lazyvim.plugins.extras.lang.typescript" }, { import = "lazyvim.plugins.extras.lang.typescript" },
{ import = "lazyvim.plugins.extras.ai.avante" },
-- import/override with your plugins -- import/override with your plugins
{ import = "plugins" }, { import = "plugins" },
}, },