updates
This commit is contained in:
47
lua/plugins/codecompanion.lua
Normal file
47
lua/plugins/codecompanion.lua
Normal file
@@ -0,0 +1,47 @@
|
||||
return {
|
||||
"olimorris/codecompanion.nvim",
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
},
|
||||
opts = {
|
||||
log_level = "TRACE", -- or "TRACE"
|
||||
interactions = {
|
||||
chat = {
|
||||
adapter = "opencode",
|
||||
roles = {
|
||||
---The header name for the LLM's messages
|
||||
---@type string|fun(adapter: CodeCompanion.HTTPAdapter|CodeCompanion.ACPAdapter): string
|
||||
llm = function(adapter)
|
||||
return "CodeCompanion (" .. adapter.formatted_name .. ")"
|
||||
end,
|
||||
|
||||
---The header name for your messages
|
||||
---@type string
|
||||
user = "Haelnorr",
|
||||
},
|
||||
},
|
||||
inline = {
|
||||
adapter = "anthropic",
|
||||
},
|
||||
},
|
||||
rules = {
|
||||
default = {
|
||||
files = {
|
||||
{ path = "RULES.md", parser = "claude" },
|
||||
},
|
||||
is_preset = true,
|
||||
},
|
||||
opts = {
|
||||
chat = {
|
||||
autoload = "default",
|
||||
enabled = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
keys = {
|
||||
{ "<leader>ac", "<cmd>CodeCompanionChat Toggle<cr>", desc = "Toggle CodeCompanion Chat" },
|
||||
{ "<leader>ai", "<cmd>CodeCompanion<cr>", mode = "v", desc = "Open CodeCompanion Inline" },
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user