From 158170cee7d5b14c12fcaf122dbd0f74593b2d6c Mon Sep 17 00:00:00 2001 From: brewinski Date: Wed, 27 Nov 2024 15:49:30 +1000 Subject: [PATCH] refactor (sidebar) remove setting search file to file path --- lua/avante/context.lua | 2 +- lua/avante/sidebar.lua | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lua/avante/context.lua b/lua/avante/context.lua index 6d39523d..9a70fa3b 100644 --- a/lua/avante/context.lua +++ b/lua/avante/context.lua @@ -42,7 +42,7 @@ function Context:open() width = 40, height = 5, row = 1, - col = -40, + col = 0, style = "minimal", border = Config.windows.edit.border, title = { { "Context", "FloatTitle" } }, diff --git a/lua/avante/sidebar.lua b/lua/avante/sidebar.lua index b9c67e07..c86cfd0a 100644 --- a/lua/avante/sidebar.lua +++ b/lua/avante/sidebar.lua @@ -187,7 +187,6 @@ local function transform_result_content(original_content, result_content, code_l if line_content:match(".+") then local filepath = line_content:match("(.+)") if filepath then - search_file = filepath table.insert(transformed_lines, string.format("Filepath: %s", filepath)) goto continue end