configures code companion
This commit is contained in:
parent
e72ddd642b
commit
21ff475f93
4 changed files with 40 additions and 1 deletions
|
|
@ -28,7 +28,10 @@ return {
|
|||
},
|
||||
sources = {
|
||||
default = { "lazydev", "lsp", "path", "snippets", "buffer" },
|
||||
per_filetype = { sql = { "dadbod" } },
|
||||
per_filetype = {
|
||||
sql = { "dadbod" },
|
||||
codecompanion = { "codecompanion" },
|
||||
},
|
||||
providers = {
|
||||
dadbod = { module = "vim_dadbod_completion.blink" },
|
||||
lazydev = {
|
||||
|
|
|
|||
25
modules/nvim/config/lua/plugins/codecompanion.lua
Normal file
25
modules/nvim/config/lua/plugins/codecompanion.lua
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
return {
|
||||
"olimorris/codecompanion.nvim",
|
||||
opts = {
|
||||
strategies = {
|
||||
chat = {
|
||||
adapter = "anthropic",
|
||||
},
|
||||
inline = {
|
||||
adapter = "anthropic",
|
||||
},
|
||||
},
|
||||
},
|
||||
config = function()
|
||||
vim.cmd([[cab cc CodeCompanion]])
|
||||
end,
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
},
|
||||
keys = {
|
||||
{ "<leader>ac", "<cmd>CodeCompanionChat Toggle<cr>", desc = "Open companion chat", mode = "n" },
|
||||
{ "<leader>aa", "<cmd>CodeCompanionActions<cr>", desc = "Open companion actions", mode = "n" },
|
||||
{ "ga", "<cmd>CodeCompanionChat Add<cr>", desc = "Add selection to chat", mode = "v" },
|
||||
},
|
||||
}
|
||||
9
modules/nvim/config/lua/plugins/mini.diff.lua
Normal file
9
modules/nvim/config/lua/plugins/mini.diff.lua
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
return {
|
||||
"echasnovski/mini.diff",
|
||||
config = function()
|
||||
local diff = require("mini.diff")
|
||||
diff.setup({
|
||||
source = diff.gen_source.none(),
|
||||
})
|
||||
end,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue