novos ajustes

This commit is contained in:
Lucas Garcia Rubio 2025-04-18 20:07:28 -03:00
parent 0334acd6e4
commit 63fc6b84b4
7 changed files with 112 additions and 42 deletions

View file

@ -15,10 +15,42 @@ return {
adapter = 'openai',
},
},
prompt_library = {
['Generate PR description'] = {
strategy = 'workflow',
description = 'Generate PR description based on git diff',
prompts = {
{
{
role = 'system',
content = 'You are an expert assistant and the best in analyzing git diffs.',
opts = {
visible = false,
},
},
{
role = 'user',
content = function()
vim.g.codecompanion_auto_tool_mode = true
return [[### Steps to Follow
You are required to create a Pull Request description based on the file at .github/pull_request_template.md. You must use @cmd_runner to read that file.
1. The file is in Portuguese, so you must complete the description in Portuguese as well.
2. Use @cmd_runner to get the git diff of the current branch, by using the command `git diff origin/HEAD`.
3. Based on that diff, you will generate a Pull Request description based on .github/pull_request_template.md.
4. If necessary, you can obtain the name of the branch by using the command `git rev-parse --abbrev-ref HEAD`.
5. Write the entire pull request description.]]
end,
},
},
},
},
},
},
},
{
'MeanderingProgrammer/render-markdown.nvim',
ft = { 'markdown', 'codecompanion' },
},
-- {
-- 'MeanderingProgrammer/render-markdown.nvim',
-- ft = { 'markdown', 'codecompanion' },
-- },
}

View file

@ -0,0 +1,11 @@
return {
-- {
-- 'CopilotC-Nvim/CopilotChat.nvim',
-- dependencies = {
-- { 'zbirenbaum/copilot.lua' }, -- or zbirenbaum/copilot.lua
-- { 'nvim-lua/plenary.nvim', branch = 'master' }, -- for curl, log and async functions
-- },
-- build = 'make tiktoken', -- Only on MacOS or Linux
-- opts = {},
-- },
}

View file

@ -1,7 +1,7 @@
return {
{
'lucas-garcia-rubio/neotest-maven',
--dir = '~/Repositories/pessoal/plugins/neotest-maven',
-- dir = '~/Repositories/pessoal/plugins/neotest-maven',
name = 'neotest-maven',
ft = 'java',
dependencies = {

View file

@ -0,0 +1,15 @@
return {
-- 'folke/noice.nvim',
-- event = 'VeryLazy',
-- opts = {
-- -- add any options here
-- },
-- dependencies = {
-- -- if you lazy-load any plugin below, make sure to add proper `module="..."` entries
-- 'MunifTanjim/nui.nvim',
-- -- OPTIONAL:
-- -- `nvim-notify` is only needed, if you want to use the notification view.
-- -- If not available, we use `mini` as the fallback
-- 'rcarriga/nvim-notify',
-- },
}