Skip to content

Commit

Permalink
feat(neovim): update codecompanion config
Browse files Browse the repository at this point in the history
  • Loading branch information
olimorris committed Jan 5, 2025
1 parent 92797c3 commit 9c20a8d
Showing 1 changed file with 107 additions and 4 deletions.
111 changes: 107 additions & 4 deletions .config/nvim/lua/plugins/coding.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ return {
schema = {
model = {
default = "claude-3.5-sonnet",
max_tokens = {
default = 8192,
},
},
})
Expand Down Expand Up @@ -54,6 +56,107 @@ return {
})
end,
},
prompt_library = {
["Test workflow"] = {
strategy = "workflow",
description = "Use a workflow to test the plugin",
opts = {
index = 4,
},
prompts = {
{
{
role = "user",
content = "Generate a Python class for managing a book library with methods for adding, removing, and searching books",
opts = {
auto_submit = false,
},
},
},
{
{
role = "user",
content = "Write unit tests for the library class you just created",
opts = {
auto_submit = true,
},
},
},
{
{
role = "user",
content = "Create a TypeScript interface for a complex e-commerce shopping cart system",
opts = {
auto_submit = true,
},
},
},
{
{
role = "user",
content = "Write a recursive algorithm to balance a binary search tree in Java",
opts = {
auto_submit = true,
},
},
},
{
{
role = "user",
content = "Generate a comprehensive regex pattern to validate email addresses with explanations",
opts = {
auto_submit = true,
},
},
},
{
{
role = "user",
content = "Create a Rust struct and implementation for a thread-safe message queue",
opts = {
auto_submit = true,
},
},
},
{
{
role = "user",
content = "Write a GitHub Actions workflow file for CI/CD with multiple stages",
opts = {
auto_submit = true,
},
},
},
{
{
role = "user",
content = "Create SQL queries for a complex database schema with joins across 4 tables",
opts = {
auto_submit = true,
},
},
},
{
{
role = "user",
content = "Write a Lua configuration for Neovim with custom keybindings and plugins",
opts = {
auto_submit = true,
},
},
},
{
{
role = "user",
content = "Generate documentation in JSDoc format for a complex JavaScript API client",
opts = {
auto_submit = true,
},
},
},
},
},
},
strategies = {
chat = {
keymaps = {
Expand Down Expand Up @@ -100,16 +203,16 @@ return {
provider = "default",
},
chat = {
show_references = true,
show_header_separator = false,
show_settings = false,
-- show_references = true,
-- show_header_separator = false,
-- show_settings = false,
},
diff = {
provider = "mini_diff",
},
},
opts = {
log_level = "TRACE",
log_level = "DEBUG",
},
})
end,
Expand Down

0 comments on commit 9c20a8d

Please sign in to comment.