diff --git a/lua/plugins/codecompanion.lua b/lua/plugins/codecompanion.lua new file mode 100644 index 00000000..9d7e233d --- /dev/null +++ b/lua/plugins/codecompanion.lua @@ -0,0 +1,39 @@ +return { + { + "github/copilot.vim", + branch = "release", + event = "InsertEnter", + config = function() + -- disable tab if you use it for something else (e.g. nvim-cmp) + vim.g.copilot_no_tab_map = true + vim.keymap.set("i", "", 'copilot#Accept("\\")', { + expr = true, + replace_keycodes = false, + }) + end, + }, + { + "olimorris/codecompanion.nvim", + dependencies = { + "nvim-lua/plenary.nvim", + "nvim-treesitter/nvim-treesitter", + }, + keys = { + { "cc", "CodeCompanionChat Toggle", desc = "CodeCompanion Chat" }, + { "ca", "CodeCompanionActions", desc = "CodeCompanion Actions", mode = { "n", "v" } }, + { "ci", "CodeCompanion", desc = "CodeCompanion Inline", mode = { "n", "v" } }, + }, + opts = { + strategies = { + chat = { adapter = "copilot" }, + inline = { adapter = "copilot" }, + agent = { adapter = "copilot" }, + }, + -- NOTE: The log_level is in `opts.opts` + opts = { + log_level = "DEBUG", -- or "TRACE" + }, + }, + }, +} + diff --git a/lua/plugins/octo.lua b/lua/plugins/octo.lua new file mode 100644 index 00000000..2c9620d7 --- /dev/null +++ b/lua/plugins/octo.lua @@ -0,0 +1,46 @@ +return { + "pwntester/octo.nvim", + cmd = "Octo", + opts = { + -- or "fzf-lua" or "snacks" or "default" + picker = "telescope", + -- bare Octo command opens picker of commands + enable_builtin = true, + }, + keys = { + { + "oi", + "Octo issue list", + desc = "List GitHub Issues", + }, + { + "op", + "Octo pr list", + desc = "List GitHub PullRequests", + }, + { + "od", + "Octo discussion list", + desc = "List GitHub Discussions", + }, + { + "on", + "Octo notification list", + desc = "List GitHub Notifications", + }, + { + "os", + function() + require("octo.utils").create_base_search_command { include_current_repo = true } + end, + desc = "Search GitHub", + }, + }, + dependencies = { + "nvim-lua/plenary.nvim", + "nvim-telescope/telescope.nvim", + -- OR "ibhagwan/fzf-lua", + -- OR "folke/snacks.nvim", + "nvim-tree/nvim-web-devicons", + }, +}