feat: cursor planning mode enabled by default (#1316)

This commit is contained in:
yetone
2025-02-20 13:06:17 +08:00
committed by GitHub
parent 2991ca69a0
commit 5b006624e6
4 changed files with 12 additions and 7 deletions

View File

@@ -884,9 +884,11 @@ function Sidebar:apply(current_cursor)
local original_code = table.concat(original_code_lines, "\n")
local resp_content = ""
local filetype = Utils.get_filetype(filepath)
local cursor_applying_provider = Provider[Config.cursor_applying_provider]
local cursor_applying_provider_name = Config.cursor_applying_provider or Config.provider
Utils.debug(string.format("Use %s for cursor applying", cursor_applying_provider_name))
local cursor_applying_provider = Provider[cursor_applying_provider_name]
if not cursor_applying_provider then
Utils.error("Failed to find cursor_applying_provider provider: " .. Config.cursor_applying_provider, {
Utils.error("Failed to find cursor_applying_provider provider: " .. cursor_applying_provider_name, {
once = true,
title = "Avante",
})