init codecompanion nvim plugin
This commit is contained in:
parent
00506c5ddc
commit
24dee0bed0
2 changed files with 38 additions and 6 deletions
30
nvim/lua/plugins/codecompanion.lua
Normal file
30
nvim/lua/plugins/codecompanion.lua
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
return {
|
||||
{
|
||||
"olimorris/codecompanion.nvim",
|
||||
opts = {
|
||||
strategies = {
|
||||
chat = {adapter = 'ollama'},
|
||||
inline = {adapter = 'ollama'},
|
||||
cmd = {adapter = 'ollama'}
|
||||
}
|
||||
},
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim", "nvim-treesitter/nvim-treesitter"
|
||||
},
|
||||
keys = {
|
||||
{
|
||||
"<leader>cc", "<cmd>CodeCompanionActions<cr>",
|
||||
"[C]ode [C]ompanion"
|
||||
}
|
||||
}
|
||||
}, {
|
||||
"echasnovski/mini.diff",
|
||||
config = function()
|
||||
local diff = require("mini.diff")
|
||||
diff.setup({
|
||||
-- Disabled by default
|
||||
source = diff.gen_source.none()
|
||||
})
|
||||
end
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue