1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2025-07-03 00:49:26 +00:00

[neovim] Add rose-pine theme and some refactors

This commit is contained in:
2024-03-17 18:25:34 +01:00
parent aceaa089f0
commit e7bf2eb91d
11 changed files with 112 additions and 44 deletions

View File

@ -14,25 +14,16 @@ require("copilot").setup({
},
})
require("copilot_cmp").setup()
local prompts = {
-- Code related prompts
Explain = "Please explain how the following code works.",
Review = "Please review the following code and provide suggestions for improvement.",
Tests = "Please explain how the selected code works, then generate unit tests for it.",
Refactor = "Please refactor the following code to improve its clarity and readability.",
FixCode = "Please fix the following code to make it work as intended.",
BetterNamings = "Please provide better names for the following variables and functions.",
-- Text related prompts
Spelling = "Please correct any grammar and spelling errors in the following text. Respect the markdown format when provided",
Wording = "Please improve the grammar and wording of the following text. Respect the markdown format when provided",
Spelling = {
prompt = "/Spelling Please correct any grammar and spelling errors in the following text. Respect the markdown format when provided",
},
}
require("copilot_cmp").setup()
require("CopilotChat").setup({
show_help = "yes",
debug = false,
disable_extra_info = "yes",
clear_chat_on_new_prompt = "yes",
show_user_selection = false,
clear_chat_on_new_prompt = true,
prompts = prompts,
temperature = 0.1,
})