{"id":32486166,"url":"https://github.com/vicentedpsantos/github-nvim","last_synced_at":"2026-07-03T01:05:46.932Z","repository":{"id":264245866,"uuid":"892818292","full_name":"vicentedpsantos/github-nvim","owner":"vicentedpsantos","description":"Some useful things I wanted to have in my nvim config to deal with github.","archived":false,"fork":false,"pushed_at":"2024-11-27T17:20:55.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-27T05:40:37.046Z","etag":null,"topics":["github","nvim-plugin","url"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vicentedpsantos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-22T20:53:30.000Z","updated_at":"2024-12-19T01:00:30.000Z","dependencies_parsed_at":"2024-11-22T22:01:21.190Z","dependency_job_id":null,"html_url":"https://github.com/vicentedpsantos/github-nvim","commit_stats":null,"previous_names":["vicentedpsantos/github-nvim"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vicentedpsantos/github-nvim","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicentedpsantos%2Fgithub-nvim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicentedpsantos%2Fgithub-nvim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicentedpsantos%2Fgithub-nvim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicentedpsantos%2Fgithub-nvim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vicentedpsantos","download_url":"https://codeload.github.com/vicentedpsantos/github-nvim/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicentedpsantos%2Fgithub-nvim/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35068165,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-02T02:00:06.368Z","response_time":173,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["github","nvim-plugin","url"],"created_at":"2025-10-27T05:35:37.216Z","updated_at":"2026-07-03T01:05:46.924Z","avatar_url":"https://github.com/vicentedpsantos.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub-Nvim\n\nA lightweight Neovim plugin to deal with Github shenanigans. One of the core principles of this plugin is that it will **never add a dependency**, keeping things as light and simple as possible.\n\n## Requirements\n\n- Neovim 0.7+ (with Lua support)\n- A GitHub-hosted repository with a properly configured `origin` remote.\n- A web browser (accessible via `xdg-open`, `open`, or `start` commands).\n\n## Installation\n\n### Using [Lazy.nvim](https://github.com/folke/lazy.nvim)\n\nAdd the following configuration to your Lazy.nvim setup:\n\n```lua\n{\n  \"vicentedpsantos/github-nvim\",\n  config = function()\n    require('github-nvim')\n\n    -- Normal mode mappings\n    vim.keymap.set(\"n\", \"\u003cleader\u003egho\", \":OpenGitHub\u003ccr\u003e\", { desc = \"Open GitHub repository page of current repo.\" })\n    vim.keymap.set(\"n\", \"\u003cleader\u003eghf\", \":OpenGitHubFile\u003ccr\u003e\", { desc = \"Open GitHub page of current repo at current file.\" })\n    vim.keymap.set(\"n\", \"\u003cleader\u003eghl\", \":OpenGitHubFileLine\u003ccr\u003e\", { desc = \"Open GitHub page of current repo at current file and line.\" })\n    vim.keymap.set(\"n\", \"\u003cleader\u003eghc\", \":CopyGitHubFileLine\u003ccr\u003e\", { desc = \"Copy GitHub URL of current file and line to clipboard.\" })\n\n    -- Visual mode mappings\n    vim.keymap.set(\"v\", \"\u003cleader\u003eghl\", \":OpenGitHubFileLine\u003ccr\u003e\", { desc = \"Open GitHub page of current repo at current file at current range.\" })\n    vim.keymap.set(\"v\", \"\u003cleader\u003eghc\", \":CopyGitHubFileLine\u003ccr\u003e\", { desc = \"Copy GitHub URL of current file and range to clipboard.\" })\n  end\n}\n```\n\n## Usage\n\n### Commands\n\n1. **`:OpenGitHub`**\n   - Opens the repository page in your browser.\n\n2. **`:OpenGitHubFile`**\n   - Opens the currently edited file on GitHub at the current branch or commit.\n\n3. **`:OpenGitHubFileLine`**\n   - Opens the currently edited file on GitHub at the current branch or commit and scrolls to the selected line(s).\n   - In Normal Mode, targets only the current line.\n   - In Visual Mode, targets the selected range of lines.\n\n4. **`:CopyGitHubFileLine`**\n   - Copies the GitHub URL for the current file and line(s) to the system clipboard.\n   - In Normal Mode, targets only the current line.\n   - In Visual Mode, targets the selected range of lines.\n\n## Notes\n\n- Make sure your repository has an `origin` remote pointing to GitHub.\n- The plugin automatically detects the current branch or commit hash for the file link.\n- Detached HEAD states will use the commit hash instead of a branch name. \n\nEnjoy seamless navigation between your code and GitHub!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvicentedpsantos%2Fgithub-nvim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvicentedpsantos%2Fgithub-nvim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvicentedpsantos%2Fgithub-nvim/lists"}