Skip to content

Lazily start gitlinker - #305

Open
dkarvik wants to merge 1 commit into
linrongbin16:masterfrom
dkarvik:lazy
Open

dkarvik wants to merge 1 commit into
linrongbin16:masterfrom
dkarvik:lazy

Conversation

@dkarvik

@dkarvik dkarvik commented Sep 26, 2026

Copy link
Copy Markdown

See :help lua-plugin-lazy. The plugin was not doing this, and was slightly slower to start up vs lazy.nvim as a result.

This makes the first :GitLink command require the rest of the plugin.

Test Platforms

  • windows
  • macOS
  • linux

Test Hosts

Test Functions

  • Use GitLink(!) to copy git link (or open in browser).
  • Use GitLink(!) blame to copy the /blame link (or open in browser).
  • Use GitLink(!) default_branch to open the /main//master link in browser (or open in browser).
  • Use GitLink(!) current_branch to open the current branch link in browser (or open in browser).
  • Copy git link in a symlink directory of git repo.
  • Copy git link in an un-pushed git branch, and receive an expected error.
  • Copy git link in a pushed git branch but edited file, and receive a warning says the git link could be wrong.
  • Copy git link with 'file' and 'rev' parameters.

See `:help lua-plugin-lazy`.  The plugin was not doing this, and was
slightly slower to start up vs lazy.nvim as a result.

This makes the first :GitLink command require the rest of the plugin.
@dkarvik

dkarvik commented Sep 26, 2026

Copy link
Copy Markdown
Author

Do you need me to run through that matrix above prior to reviewing this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant