feat: remove old prompt_chat_limit

This commit is contained in:
2025-02-14 15:26:28 +01:00
parent a5bad60d8e
commit 32fcc2622f
4 changed files with 3 additions and 41 deletions

View File

@@ -198,13 +198,7 @@ function M.get_project_prompt(directories, conf)
if conf.include_file_contents then
local files = M.get_project_files(directories, conf)
local contents = M.get_file_contents(files, conf)
local total_chars = #contents
if total_chars > conf.prompt_char_limit then
vim.notify("Total file contents (" .. total_chars .. " characters) exceed the prompt limit (" .. conf.prompt_char_limit .. "). Please disable 'include_file_contents' in your config.", vim.log.levels.ERROR)
return structure
else
return structure .. "\n" .. contents
end
return structure .. "\n" .. contents
else
return structure
end