Include copilot chat and completions.
Refactor configuration into more modules
This commit is contained in:
parent
b6d0624e34
commit
05874830dd
4 changed files with 160 additions and 103 deletions
31
.config/nvim/lua/plugins/llm.lua
Normal file
31
.config/nvim/lua/plugins/llm.lua
Normal 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,
|
||||
},
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue