Move copilot chat

This commit is contained in:
Ethan Lane 2024-10-30 12:17:54 +00:00
parent 9f8fce9599
commit 50541208e6

View file

@ -50,27 +50,6 @@ vim.opt.ttyfast = true
-- Do not add a newline at the end of the file
vim.opt.fixeol = false
-- Copilot Chat
local prompts = require('CopilotChat.prompts')
local select = require('CopilotChat.select')
require("CopilotChat").setup {
debug = false,
question_header = '## User ',
answer_header = '## Copilot ',
error_header = '## Error ',
separator = '---',
selection = function(source)
return select.visual(source) or select.line(source)
end,
window = {
layout = 'float',
},
}
if vim.fn.has("termguicolors") == 1 then
vim.opt.termguicolors = true
end
@ -242,3 +221,24 @@ return require('packer').startup(function(use)
use 'github/copilot.vim'
use {'CopilotC-Nvim/CopilotChat.nvim', branch = 'canary'}
end)
-- Copilot Chat
local prompts = require('CopilotChat.prompts')
local select = require('CopilotChat.select')
require("CopilotChat").setup {
debug = false,
question_header = '## User ',
answer_header = '## Copilot ',
error_header = '## Error ',
separator = '---',
selection = function(source)
return select.visual(source) or select.line(source)
end,
window = {
layout = 'float',
},
}