dotfiles/.config/nvim/lua/plugins/llm.lua
Daniel McKnight 2f76742b1c Add S-Tab mapping to outdent
Update Copilot to use C-a to accept change to avoid conflict with `Tab` for indenting
2025-06-09 11:20:11 -07:00

39 lines
796 B
Lua

return {
{
"github/copilot.vim",
config = function()
vim.keymap.set("i", "<C-a>", 'copilot#Accept()', {
expr = true,
silent = true,
replace_keycodes = false,
})
vim.g.copilot_no_tab_map = true
end,
},
{
"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,
},
}