1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2024-12-23 14:56:48 +00:00
dotfiles/.config/nvim/lua/plugins/copilot.lua

31 lines
1.0 KiB
Lua
Raw Normal View History

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 = {
Spelling = {
2024-03-29 16:57:32 +00:00
system_prompt = "You are a technical writer. You have a deep understanding of both the English and the Spanish languages. You can effectively communicate complex ideas and concepts in a way everyone easily understands. You have a keen eye for detail and can pick up on subtle nuances in language that others may miss. You are also skilled at translating written or spoken content from one language to another, ensuring that the meaning and tone of the original message are preserved.",
prompt = "Correct any grammar and spelling errors in the following text. Respect the markdown format when provided",
},
2024-02-16 15:37:22 +00:00
}
require("copilot_cmp").setup()
2024-02-16 15:37:22 +00:00
require("CopilotChat").setup({
debug = false,
show_user_selection = false,
2024-06-30 16:36:45 +00:00
clear_chat_on_new_prompt = false,
2024-02-16 15:37:22 +00:00
prompts = prompts,
})