From 1da8b3be6d87f710d52146ab5c07549064558560 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Thu, 17 Oct 2024 10:33:10 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(nvim):=20add=20octohub=20to=20?= =?UTF-8?q?the=20github=20extra?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../extras/editor/git/github-extended.lua | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/.config/nvim/lua/plugins/extras/editor/git/github-extended.lua b/.config/nvim/lua/plugins/extras/editor/git/github-extended.lua index 28d8c233..5015a8cd 100644 --- a/.config/nvim/lua/plugins/extras/editor/git/github-extended.lua +++ b/.config/nvim/lua/plugins/extras/editor/git/github-extended.lua @@ -36,6 +36,7 @@ return { { prefix .. "R", group = "review" }, { prefix .. "g", group = "gist" }, { prefix .. "s", group = "review" }, + { prefix .. "P", group = "profile" }, }, }, }, @@ -130,4 +131,39 @@ return { { prefix .. "sc", " Octo review close", desc = "Return to PR" }, }, }, + { + "2kabhishek/octohub.nvim", + dependencies = { + "2kabhishek/utils.nvim", + }, + cmd = { + "OctoRepos", + "OctoRepo", + "OctoStats", + "OctoActivityStats", + "OctoContributionStats", + "OctoRepoStats", + "OctoProfile", + "OctoRepoWeb", + }, + opts = { + add_default_keybindings = false, + projects_dir = "~/dev/", + }, + keys = { + { prefix .. "rl", "OctoRepos", desc = "List Repos" }, + { prefix .. "rS", "OctoRepos sort:stars", desc = "Top Starred Repos" }, + { prefix .. "rI", "OctoRepos sort:issues", desc = "Top Repos With Issues" }, + { prefix .. "rU", "OctoRepos sort:updated", desc = "Recently Updated Repos" }, + { prefix .. "rP", "OctoRepos type:private", desc = "Private Repos" }, + { prefix .. "rF", "OctoRepos type:fork", desc = "Forked Repos" }, + { prefix .. "rc", "OctoRepo", desc = "Clone/Open Repo" }, + { prefix .. "rs", "OctoRepoStats", desc = "Repo Stats" }, + + { prefix .. "Ps", "OctoStats", desc = "All Stats" }, + { prefix .. "Pa", "OctoActivityStats", desc = "Activity Stats" }, + { prefix .. "Pc", "OctoContributionStats", desc = "Contribution Stats" }, + { prefix .. "Po", "OctoProfile", desc = "Open Profile" }, + }, + }, }