diff options
| author | Simen A. W. Olsen <hello@simenandre.no> | 2026-07-19 21:17:00 +0200 |
|---|---|---|
| committer | Simen A. W. Olsen <hello@simenandre.no> | 2026-07-19 21:17:00 +0200 |
| commit | b6dda087fc86e78e589785a65c61fca23dc383f0 (patch) | |
| tree | f11828ff6097cdbc31f59d2f519686acd97bccec /lua/simenandre/plugins/octo.lua | |
| parent | 83cd13c60ba2b8de7b5a50affa0e110c2a608cd6 (diff) | |
| download | config.nvim-b6dda087fc86e78e589785a65c61fca23dc383f0.tar.gz config.nvim-b6dda087fc86e78e589785a65c61fca23dc383f0.zip | |
feat: add octo
Diffstat (limited to 'lua/simenandre/plugins/octo.lua')
| -rw-r--r-- | lua/simenandre/plugins/octo.lua | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/lua/simenandre/plugins/octo.lua b/lua/simenandre/plugins/octo.lua new file mode 100644 index 0000000..f772935 --- /dev/null +++ b/lua/simenandre/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 = { + { + "<leader>oi", + "<CMD>Octo issue list<CR>", + desc = "List GitHub Issues", + }, + { + "<leader>op", + "<CMD>Octo pr list<CR>", + desc = "List GitHub PullRequests", + }, + { + "<leader>od", + "<CMD>Octo discussion list<CR>", + desc = "List GitHub Discussions", + }, + { + "<leader>on", + "<CMD>Octo notification list<CR>", + desc = "List GitHub Notifications", + }, + { + "<leader>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 + }, +} |
