From e6443ad7dcb6e3cca286aa6b94eb418e6fa15d8c Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Thu, 6 Jun 2024 14:53:17 +0200 Subject: [PATCH] fix(octo): load octo on `octo://*` events, so that those buffers work after session restore --- lua/lazyvim/plugins/extras/util/octo.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/lazyvim/plugins/extras/util/octo.lua b/lua/lazyvim/plugins/extras/util/octo.lua index d23ea883..69ea3d97 100644 --- a/lua/lazyvim/plugins/extras/util/octo.lua +++ b/lua/lazyvim/plugins/extras/util/octo.lua @@ -7,6 +7,7 @@ return { { "pwntester/octo.nvim", cmd = "Octo", + event = { { event = "BufReadCmd", pattern = "octo://*" } }, init = function() vim.treesitter.language.register("markdown", "octo") end, @@ -23,6 +24,7 @@ return { { "gP", "Octo pr search", desc = "Search PRs (Octo)" }, { "gr", "Octo repo list", desc = "List Repos (Octo)" }, { "gS", "Octo search", desc = "Search (Octo)" }, + { "a", "", desc = "+assignee (Otco)", ft = "octo" }, { "c", "", desc = "+comment/code (Otco)", ft = "octo" }, { "l", "", desc = "+label (Otco)", ft = "octo" },