implemented copilot integration as ghost text and simplified some

keyboard shortcuts
This commit is contained in:
venus
2026-07-24 07:24:45 -05:00
parent d04ef25170
commit 04b57e60e6
16 changed files with 436 additions and 131 deletions

View File

@@ -4,7 +4,10 @@ return {
"nvim-lua/plenary.nvim",
"nvim-treesitter/nvim-treesitter",
},
--{{{ Options
opts = {
--- {{{ Display
display = {
chat = {
window = {
@@ -24,17 +27,23 @@ return {
}
},
},
-- }}}
--
-- {{{ INTERACTIONS
interactions = {
chat = {
adapter = "gemini_pro", -- Removed the curly braces
adapter = "ollama_coder", -- Removed the curly braces
},
inline = {
adapter = "ollama_coder", -- Removed the curly braces
},
background = {
adapter = "ollama_bg", -- Pointed this to the new extended adapter string
}
},
background = {
adapter = "ollama_bg", -- Pointed this to the new extended adapter string
},
-- }}}
--
-- {{{ Adapters
adapters = {
http = {
gemini_pro = function()
@@ -81,5 +90,40 @@ return {
end,
},
},
-- }}}
--
-- {{{ Library
prompt_library = {
["Local Executor"] = {
strategy = "chat",
description = "Executes implementation diffs locally and writes TDD test cases.",
opts = {
adapter = "ollama_coder", -- Force it to use your local hardware
is_default = false,
is_slash_cmd = false,
},
prompts = {
{
role = "system",
content = [[You are the Last Mile Executor.
You run in a stateless context. I will provide you with a unified diff and a testing plan.
Your strict execution order is:
1. Output the test case file modifications first (SDET-first).
2. Output the production implementation code modifications.
Do not write markdown headers (H1/H2). Use code blocks with the language ID.
Precede every code block with a line comment specifying the exact 'filepath:'.
Do not use bash syntax; adhere strictly to POSIX sh if writing shell automation.
Do not execute terminal commands directly. Output the code blocks for manual unstaged review.]],
},
{
role = "user",
content = "I am ready to provide the Planner's diff. Await my input.",
},
},
},
},
-- }}}
}
--}}}
}