diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index eaab257..9b521b2 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -1,4 +1,53 @@ return { + { + "pwntester/octo.nvim", + cmd = "Octo", + config = function() require("octo").setup() end, + 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", -- optional if file_panel.icons is a function + }, + }, { "MysticalDevil/inlay-hints.nvim", event = "LspAttach",