From f23550bd94e1e39ac0ed61baa3cb35fd822ee4a2 Mon Sep 17 00:00:00 2001 From: yetone Date: Tue, 10 Jun 2025 12:23:24 +0800 Subject: [PATCH] fix: lua style (#2202) --- lua/avante/path.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/avante/path.lua b/lua/avante/path.lua index 3541e0b..c23aa02 100644 --- a/lua/avante/path.lua +++ b/lua/avante/path.lua @@ -133,7 +133,7 @@ end ---@return avante.ChatHistory function History.load(bufnr, filename) local history_filepath = filename and History.get_filepath(bufnr, filename) - or History.get_latest_filepath(bufnr, false) + or History.get_latest_filepath(bufnr, false) if history_filepath:exists() then local content = history_filepath:read() if content ~= nil then @@ -239,7 +239,7 @@ function Prompt.get_templates_dir(project_root) end Path:new(debug.getinfo(1).source:match("@?(.*/)"):gsub("/lua/avante/path.lua$", "") .. "templates") - :copy({ destination = cache_prompt_dir, recursive = true }) + :copy({ destination = cache_prompt_dir, recursive = true }) vim.iter(Prompt.custom_prompts_contents):filter(function(_, v) return v ~= nil end):each(function(k, v) local orig_file = cache_prompt_dir:joinpath(Prompt.get_builtin_prompts_filepath(k))