mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-17 17:23:24 +02:00
update avante
This commit is contained in:
parent
2653f52176
commit
67546eb094
1 changed files with 30 additions and 74 deletions
|
@ -2,85 +2,41 @@ return {
|
||||||
{
|
{
|
||||||
"yetone/avante.nvim",
|
"yetone/avante.nvim",
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
|
version = false,
|
||||||
|
opts = {
|
||||||
|
provider = "claude",
|
||||||
|
},
|
||||||
dependencies = {
|
dependencies = {
|
||||||
|
"nvim-treesitter/nvim-treesitter",
|
||||||
|
"nvim-lua/plenary.nvim",
|
||||||
|
"MunifTanjim/nui.nvim",
|
||||||
|
"hrsh7th/nvim-cmp",
|
||||||
"stevearc/dressing.nvim",
|
"stevearc/dressing.nvim",
|
||||||
"ibhagwan/fzf-lua",
|
"folke/snacks.nvim",
|
||||||
},
|
"echasnovski/mini.icons",
|
||||||
opts = {
|
"zbirenbaum/copilot.lua",
|
||||||
-- Default configuration
|
{
|
||||||
hints = { enabled = false },
|
"HakonHarnes/img-clip.nvim",
|
||||||
|
event = "VeryLazy",
|
||||||
---@alias AvanteProvider "claude" | "openai" | "azure" | "gemini" | "cohere" | "copilot" | string
|
opts = {
|
||||||
provider = "claude", -- Recommend using Claude
|
-- recommended settings
|
||||||
auto_suggestions_provider = "claude", -- Since auto-suggestions are a high-frequency operation and therefore expensive, it is recommended to specify an inexpensive provider or even a free provider: copilot
|
default = {
|
||||||
claude = {
|
embed_image_as_base64 = false,
|
||||||
endpoint = "https://api.anthropic.com",
|
prompt_for_file_name = false,
|
||||||
model = "claude-3-5-sonnet-20241022",
|
drag_and_drop = {
|
||||||
temperature = 0,
|
insert_mode = true,
|
||||||
max_tokens = 4096,
|
},
|
||||||
},
|
-- required for Windows users
|
||||||
|
use_absolute_path = true,
|
||||||
-- File selector configuration
|
|
||||||
--- @alias FileSelectorProvider "native" | "fzf" | "mini.pick" | "snacks" | "telescope" | string
|
|
||||||
file_selector = {
|
|
||||||
provider = "fzf", -- Avoid native provider issues
|
|
||||||
provider_opts = {},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
build = LazyVim.is_win() and "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false" or "make",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"saghen/blink.cmp",
|
|
||||||
lazy = true,
|
|
||||||
dependencies = { "saghen/blink.compat" },
|
|
||||||
opts = {
|
|
||||||
sources = {
|
|
||||||
default = { "avante_commands", "avante_mentions", "avante_files" },
|
|
||||||
compat = {
|
|
||||||
"avante_commands",
|
|
||||||
"avante_mentions",
|
|
||||||
"avante_files",
|
|
||||||
},
|
|
||||||
-- LSP score_offset is typically 60
|
|
||||||
providers = {
|
|
||||||
avante_commands = {
|
|
||||||
name = "avante_commands",
|
|
||||||
module = "blink.compat.source",
|
|
||||||
score_offset = 90,
|
|
||||||
opts = {},
|
|
||||||
},
|
|
||||||
avante_files = {
|
|
||||||
name = "avante_files",
|
|
||||||
module = "blink.compat.source",
|
|
||||||
score_offset = 100,
|
|
||||||
opts = {},
|
|
||||||
},
|
|
||||||
avante_mentions = {
|
|
||||||
name = "avante_mentions",
|
|
||||||
module = "blink.compat.source",
|
|
||||||
score_offset = 1000,
|
|
||||||
opts = {},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
{
|
||||||
},
|
"MeanderingProgrammer/render-markdown.nvim",
|
||||||
{
|
opts = {
|
||||||
"MeanderingProgrammer/render-markdown.nvim",
|
file_types = { "markdown", "Avante" },
|
||||||
optional = true,
|
},
|
||||||
ft = function(_, ft)
|
ft = { "markdown", "Avante" },
|
||||||
vim.list_extend(ft, { "Avante" })
|
|
||||||
end,
|
|
||||||
opts = function(_, opts)
|
|
||||||
opts.file_types = vim.list_extend(opts.file_types or {}, { "Avante" })
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"folke/which-key.nvim",
|
|
||||||
optional = true,
|
|
||||||
opts = {
|
|
||||||
spec = {
|
|
||||||
{ "<leader>a", group = "ai" },
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue