Include copilot chat and completions.

Refactor configuration into more modules
This commit is contained in:
Daniel McKnight 2025-06-03 08:34:58 -07:00
parent b6d0624e34
commit 05874830dd
4 changed files with 160 additions and 103 deletions

View file

@ -0,0 +1,31 @@
return {
{
"github/copilot.vim",
},
{
"CopilotC-Nvim/CopilotChat.nvim",
tag = "v3.4.0",
dependencies = {
{ "nvim-lua/plenary.nvim" },
{ "github/copilot.vim" },
},
build = "make tiktoken",
config = function()
require("CopilotChat").setup({
question_header = "",
answer_header = "",
separator = "",
error_header = "> [!ERROR] Error",
window = {
layout = "horizontal",
height = 0.3,
width = 0.25,
},
auto_insert_mode = false,
chat_autocomplete = false,
highlight_headers = false,
show_help = false,
})
end,
},
}