diff options
| author | Evgeni Chasnovski <evgeni.chasnovski@gmail.com> | 2026-04-24 12:02:46 +0300 |
|---|---|---|
| committer | Evgeni Chasnovski <evgeni.chasnovski@gmail.com> | 2026-04-25 20:29:19 +0300 |
| commit | e45cdbc7c4f8618a92ef6d81a409669dbbdf5f6b (patch) | |
| tree | 71a487592b7299f35fd368bb3801c26bf21a801f /runtime/lua/vim/pack.lua | |
| parent | d01dc690e1e86911f65fcbe0b733aca613a4dcd0 (diff) | |
| download | rneovim-e45cdbc7c4f8618a92ef6d81a409669dbbdf5f6b.tar.gz rneovim-e45cdbc7c4f8618a92ef6d81a409669dbbdf5f6b.tar.bz2 rneovim-e45cdbc7c4f8618a92ef6d81a409669dbbdf5f6b.zip | |
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.
Diffstat (limited to 'runtime/lua/vim/pack.lua')
| -rw-r--r-- | runtime/lua/vim/pack.lua | 4 |
1 files changed, 2 insertions, 2 deletions
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 |