feat: avante repo map rust crate (#628)

This commit is contained in:
yetone
2024-09-26 03:45:49 +08:00
committed by GitHub
parent 5461342fce
commit 0d90c047ef
23 changed files with 1399 additions and 737 deletions

View File

@@ -2,6 +2,7 @@ local Utils = require("avante.utils")
local Config = require("avante.config")
local Llm = require("avante.llm")
local Provider = require("avante.providers")
local RepoMap = require("avante.repo_map")
local api = vim.api
local fn = vim.fn
@@ -394,7 +395,7 @@ function Selection:create_editing_input()
local mentions = Utils.extract_mentions(input)
input = mentions.new_content
local project_context = mentions.enable_project_context and Utils.repo_map.get_repo_map(file_ext) or nil
local project_context = mentions.enable_project_context and RepoMap.get_repo_map(file_ext) or nil
Llm.stream({
bufnr = code_bufnr,