From e45cdbc7c4f8618a92ef6d81a409669dbbdf5f6b Mon Sep 17 00:00:00 2001 From: Evgeni Chasnovski Date: Fri, 24 Apr 2026 12:02:46 +0300 Subject: fix(util): add and use forge link computation Problem: There are many Git forges each with a different way of constructing permanent links to like commits and tags. Solution: Add a private utility function that computes these special links on the best effort basis. --- runtime/lua/vim/pack.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/lua/vim/pack.lua') diff --git a/runtime/lua/vim/pack.lua b/runtime/lua/vim/pack.lua index c6dec53d32..932e6ca070 100644 --- a/runtime/lua/vim/pack.lua +++ b/runtime/lua/vim/pack.lua @@ -1248,8 +1248,8 @@ end --- --- Some features are provided via LSP: --- - 'textDocument/documentLink' - compute links for plugin paths, sources, ---- commits, and tags. Use |gx| to open a link to an object at cursor. ---- Only supports GitHub hosted repositories for commit and tag links. +--- commits, and tags. Makes a best effort educated guess about a link structure. +--- Use |gx| to open a link to an object at cursor. --- - 'textDocument/documentSymbol' (`gO` via |lsp-defaults| or |vim.lsp.buf.document_symbol()|) - --- show structure of the buffer. --- - 'textDocument/hover' (`K` via |lsp-defaults| or |vim.lsp.buf.hover()|) - show more -- cgit