From 475b293e5d5de4b0a23175a9b67d736fa2e33a3d Mon Sep 17 00:00:00 2001 From: rootiest Date: Wed, 28 Aug 2024 06:33:39 -0400 Subject: [PATCH] feat(hyperlinks): add functionality to make Jira IDs clickable --- plugins/hyperlinks.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugins/hyperlinks.lua b/plugins/hyperlinks.lua index c0f5914..b8f9f70 100644 --- a/plugins/hyperlinks.lua +++ b/plugins/hyperlinks.lua @@ -13,4 +13,11 @@ table.insert(CONFIG.hyperlink_rules, { format = "https://www.github.com/$1/$3", }) +-- make Jira IDs clickable +table.insert(CONFIG.hyperlink_rules, { + regex = [[\b([A-Z]+-\d+)\b]], + format = "https://jira.YOUR_JIRA.com/browse/$1", + highlight = 1, +}) + return M