nvim: Add gitcommit and history extensions to codecompanion
This commit is contained in:
parent
1397fee17a
commit
4e7b64aad0
2 changed files with 24 additions and 0 deletions
|
|
@ -8,6 +8,8 @@
|
|||
"cmp-calc": { "branch": "main", "commit": "5947b412da67306c5b68698a02a846760059be2e" },
|
||||
"cmp-pandoc.nvim": { "branch": "main", "commit": "30faa4456a7643c4cb02d8fa18438fd484ed7602" },
|
||||
"cmp-spell": { "branch": "master", "commit": "694a4e50809d6d645c1ea29015dad0c293f019d6" },
|
||||
"codecompanion-gitcommit.nvim": { "branch": "main", "commit": "28f05d8e28f1abae4a333f761944119d4080e6ee" },
|
||||
"codecompanion-history.nvim": { "branch": "main", "commit": "66943e78bcacaa27f4ac4a398df4016eb5413ecd" },
|
||||
"codecompanion.nvim": { "branch": "main", "commit": "ecf07d4a914f44455b5098acd49746b8dc5375f0" },
|
||||
"conform.nvim": { "branch": "master", "commit": "a6f5bdb78caa305496357d17e962bbc4c0b392e2" },
|
||||
"copilot-lualine": { "branch": "main", "commit": "6bc29ba1fcf8f0f9ba1f0eacec2f178d9be49333" },
|
||||
|
|
|
|||
|
|
@ -31,6 +31,8 @@ return {
|
|||
"nvim-treesitter/nvim-treesitter",
|
||||
"zbirenbaum/copilot.lua",
|
||||
{ "ibhagwan/fzf-lua", optional = true },
|
||||
"ravitemer/codecompanion-history.nvim",
|
||||
"jinzhongjia/codecompanion-gitcommit.nvim",
|
||||
},
|
||||
init = function(_)
|
||||
if require("core.util").is_available("which-key") then
|
||||
|
|
@ -74,6 +76,26 @@ return {
|
|||
provider = "fzf_lua",
|
||||
},
|
||||
},
|
||||
extensions = {
|
||||
history = {
|
||||
enabled = true,
|
||||
auto_save = false,
|
||||
expiration_days = 7,
|
||||
picker = "fzf-lua",
|
||||
delete_on_clearing_chat = true,
|
||||
},
|
||||
gitcommit = {
|
||||
enabled = true,
|
||||
callback = "codecompanion._extensions.gitcommit",
|
||||
opts = {
|
||||
add_slash_command = true,
|
||||
buffer = {
|
||||
enabled = true,
|
||||
keymap = "<leader>ag",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
keys = {
|
||||
{ "<leader>aa", "<cmd>CodeCompanionActions<cr>", desc = "Actions", silent = true, mode = { "n", "v" } },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue