feat(hyperlinks): add functionality to make Jira IDs clickable

This commit is contained in:
2024-08-28 06:33:39 -04:00
parent d3e4003dd8
commit 475b293e5d
+7
View File
@@ -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