mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2025-07-02 01:39:26 +00:00
[neovim] Add rose-pine theme and some refactors
This commit is contained in:
@ -153,11 +153,13 @@ keymap(
|
||||
)
|
||||
|
||||
-- Copilot
|
||||
keymap("n", "<leader>coa", function()
|
||||
require("CopilotChat.code_actions").show_help_actions()
|
||||
keymap({ "n", "v" }, "<leader>coa", function()
|
||||
local actions = require("CopilotChat.actions")
|
||||
require("CopilotChat.integrations.telescope").pick(actions.help_actions())
|
||||
end, vim.tbl_extend("force", opts, { desc = "CopilotChat - Help actions" }))
|
||||
keymap("n", "<leader>cop", function()
|
||||
require("CopilotChat.code_actions").show_prompt_actions()
|
||||
keymap("n", "<leader>coh", function()
|
||||
local actions = require("CopilotChat.actions")
|
||||
require("CopilotChat.integrations.telescope").pick(actions.prompt_actions())
|
||||
end, vim.tbl_extend("force", opts, { desc = "CopilotChat - Prompt actions" }))
|
||||
|
||||
-- Better paste
|
||||
|
@ -96,7 +96,14 @@ require("lazy").setup({
|
||||
},
|
||||
}
|
||||
require("github-theme").setup({ options = options, specs = specs })
|
||||
vim.cmd("colorscheme github_dark_dimmed")
|
||||
end,
|
||||
},
|
||||
{
|
||||
"rose-pine/neovim",
|
||||
name = "rose-pine",
|
||||
lazy = false,
|
||||
config = function()
|
||||
vim.cmd("colorscheme rose-pine-moon")
|
||||
end,
|
||||
},
|
||||
|
||||
@ -256,6 +263,7 @@ require("lazy").setup({
|
||||
"nvim-neotest/neotest",
|
||||
dependencies = {
|
||||
"nvim-neotest/neotest-go",
|
||||
"nvim-neotest/neotest-python",
|
||||
"antoinemadec/FixCursorHold.nvim",
|
||||
},
|
||||
},
|
||||
@ -288,6 +296,7 @@ require("lazy").setup({
|
||||
{ "AndreM222/copilot-lualine" },
|
||||
{
|
||||
"copilotc-nvim/copilotchat.nvim",
|
||||
branch = "canary",
|
||||
event = "VeryLazy",
|
||||
},
|
||||
|
||||
@ -317,4 +326,6 @@ require("lazy").setup({
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
{ "robbles/logstash.vim" },
|
||||
}, lazy_opts)
|
||||
|
@ -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,
|
||||
})
|
||||
|
@ -1,4 +1,5 @@
|
||||
return {
|
||||
cmd = { "/home/dani/.local/pipx/venvs/basedpyright/bin/basedpyright-langserver", "--stdio" },
|
||||
settings = {
|
||||
python = {
|
||||
analysis = {
|
||||
|
@ -26,6 +26,7 @@ neotest.setup({
|
||||
},
|
||||
args = { "-count=1" },
|
||||
}),
|
||||
require("neotest-python")({}),
|
||||
},
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user