feat(hyperlinks): add functionality to make Jira IDs clickable
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user