From 3b09585279a77bb2654868270fd6a8a40977bbe3 Mon Sep 17 00:00:00 2001 From: Peter Sheehan <145384599+peter-bread@users.noreply.github.com> Date: Sun, 4 Jan 2026 18:12:23 +0000 Subject: [PATCH] WIP: vscode-diff and octo --- lua/peter/plugins/core/git.lua | 7 ++++ lua/peter/plugins/core/github.lua | 54 +++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 lua/peter/plugins/core/github.lua diff --git a/lua/peter/plugins/core/git.lua b/lua/peter/plugins/core/git.lua index 81329043..8aa1a265 100644 --- a/lua/peter/plugins/core/git.lua +++ b/lua/peter/plugins/core/git.lua @@ -9,6 +9,13 @@ local P = require("peter.util.plugins.plugins") ---@type LazyPluginSpec[] return { + { + "esmuellert/vscode-diff.nvim", + enabled = false, + dependencies = { "MunifTanjim/nui.nvim" }, + branch = "next", + cmd = "CodeDiff", + }, { "NeogitOrg/neogit", dependencies = { diff --git a/lua/peter/plugins/core/github.lua b/lua/peter/plugins/core/github.lua new file mode 100644 index 00000000..2b92a1f3 --- /dev/null +++ b/lua/peter/plugins/core/github.lua @@ -0,0 +1,54 @@ +---@module "octo" + +return { + { + "pwntester/octo.nvim", + enabled = false, + dependencies = { + "nvim-lua/plenary.nvim", + "folke/snacks.nvim", + }, + cmd = "Octo", + ---@type OctoConfig + ---@diagnostic disable-next-line: missing-fields + opts = { + picker = "snacks", + 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", + }, + }, + config = function(_, opts) + require("peter.util.icons").try_mock_nvim_web_devicons() + require("octo").setup(opts) + end, + }, +}