Skip to content

Commit

Permalink
Try add CodeCompanion from Zed
Browse files Browse the repository at this point in the history
  • Loading branch information
utensil committed Nov 1, 2024
1 parent 31d4d60 commit 1c877c2
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions uts-plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,36 @@ local plugins = {
},
},
},
{
"olimorris/codecompanion.nvim",
dependencies = {
"nvim-lua/plenary.nvim",
"nvim-treesitter/nvim-treesitter",
"hrsh7th/nvim-cmp", -- Optional: For using slash commands and variables in the chat buffer
"nvim-telescope/telescope.nvim", -- Optional: For using slash commands
{ "stevearc/dressing.nvim", opts = {} }, -- Optional: Improves `vim.ui.select`
"echasnovski/mini.nvim",
},
config = function()
require("codecompanion").setup {
display = {
diff = {
provider = "mini_diff",
},
},
}
end,
keys = {
-- use <C-z> to trigger CodeCompanion for both n and v
{ "<localleader>z", mode = "n", "<cmd>CodeCompanion<cr>", desc = "CodeCompanion - Inline" },
{ "<localleader>z", mode = "v", "<cmd>CodeCompanion<cr>", desc = "CodeCompanion - Inline" },
{ "<C-a>", mode = "n", "<cmd>CodeCompanionActions<cr>", desc = "CodeCompanion - Actions" },
{ "<C-a>", mode = "v", "<cmd>CodeCompanionActions<cr>", desc = "CodeCompanion - Actions" },
{ "<localleader>a", mode = "n", "<cmd>CodeCompanionChat Toggle<cr>", desc = "CodeCompanion - Chat Toggle" },
{ "<localleader>a", mode = "v", "<cmd>CodeCompanionChat Toggle<cr>", desc = "CodeCompanion - Chat Toggle" },
{ "ga", mode = "v", "<cmd>CodeCompanionChat Add<cr>", desc = "CodeCompanion - Chat Add" },
},
},
{
"zbirenbaum/copilot-cmp",
after = {
Expand Down

0 comments on commit 1c877c2

Please sign in to comment.