Skip to content

bug: The edit_file tool does not work with providers other than morph. #2922

@tqcq

Description

@tqcq

Describe the bug

local provider = Providers["morph"]
if not provider then return false, "morph provider not found" end
if not provider.is_env_set() then return false, "morph provider not set" end

To reproduce

No response

Expected behavior

local Config = require('avante.config')
...
local provider = Providers[Config.provider]

Installation method

Use lazy.nvim:

{
  "yetone/avante.nvim",
  event = "VeryLazy",
  lazy = false,
  version = false, -- set this if you want to always pull the latest change
  opts = {
    -- add any opts here
  },
  -- if you want to build from source then do `make BUILD_FROM_SOURCE=true`
  build = "make",
  -- build = "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false" -- for windows
  dependencies = {
    "nvim-lua/plenary.nvim",
    "MunifTanjim/nui.nvim",
  },
}

Environment

neovim: v0.11.5
commit: e89eb79 (main)

Repro

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions