2024-02-12 19:46:40 +00:00
|
|
|
require("copilot").setup({
|
|
|
|
suggestion = { enabled = false },
|
|
|
|
panel = { enabled = false },
|
|
|
|
filetypes = {
|
|
|
|
javascript = true,
|
|
|
|
typescript = true,
|
|
|
|
go = true,
|
|
|
|
lua = true,
|
|
|
|
python = true,
|
|
|
|
sh = true,
|
|
|
|
yaml = true,
|
|
|
|
json = true,
|
|
|
|
["*"] = false,
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
2024-02-16 15:37:22 +00:00
|
|
|
local prompts = {
|
2024-03-17 17:25:34 +00:00
|
|
|
Spelling = {
|
|
|
|
prompt = "/Spelling Please correct any grammar and spelling errors in the following text. Respect the markdown format when provided",
|
|
|
|
},
|
2024-02-16 15:37:22 +00:00
|
|
|
}
|
2024-03-17 17:25:34 +00:00
|
|
|
|
|
|
|
require("copilot_cmp").setup()
|
2024-02-16 15:37:22 +00:00
|
|
|
require("CopilotChat").setup({
|
|
|
|
debug = false,
|
2024-03-17 17:25:34 +00:00
|
|
|
show_user_selection = false,
|
|
|
|
clear_chat_on_new_prompt = true,
|
2024-02-16 15:37:22 +00:00
|
|
|
prompts = prompts,
|
|
|
|
})
|