cxwx / open-github-repo

A NeoVim plugin to quickly open the GitHub page for a plugin.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Open Github Repo

A NeoVim plugin to quickly open the GitHub page for a plugin.

Installation

With lazy.nvim:

return {
    "fowlie/open-github-repo",
    ft = "lua", -- might work elsewhere too, but not tested
    config = function()
        require("open-github-repo")
    end,
},

Commands

The plugin provides the user command :OpenGitHubRepo. Invoke it when the cursor is on the name of a repo.

To bind it to a key you can do:

vim.keymap.set('n', '<leader>gh', '<Cmd>OpenGitHubRepo<CR>')

About

A NeoVim plugin to quickly open the GitHub page for a plugin.

License:MIT License


Languages

Language:Lua 100.0%