{"id":20780965,"url":"https://github.com/comatory/gh-co.nvim","last_synced_at":"2025-12-24T16:46:36.227Z","repository":{"id":209211127,"uuid":"578345775","full_name":"comatory/gh-co.nvim","owner":"comatory","description":"GIthub CODEOWNERS plugin for Neovim","archived":false,"fork":false,"pushed_at":"2023-11-29T21:04:04.000Z","size":15,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-08T20:02:57.489Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/comatory.png","metadata":{"files":{"readme":"readme.MD","changelog":"CHANGELOG.md","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}},"created_at":"2022-12-14T20:54:49.000Z","updated_at":"2025-02-13T12:57:31.000Z","dependencies_parsed_at":"2023-11-29T22:24:25.237Z","dependency_job_id":"c24255aa-52e5-4ba7-bf69-350e33010b0f","html_url":"https://github.com/comatory/gh-co.nvim","commit_stats":null,"previous_names":["comatory/gh-co.nvim"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/comatory%2Fgh-co.nvim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/comatory%2Fgh-co.nvim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/comatory%2Fgh-co.nvim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/comatory%2Fgh-co.nvim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/comatory","download_url":"https://codeload.github.com/comatory/gh-co.nvim/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243125291,"owners_count":20240264,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-17T13:40:17.163Z","updated_at":"2025-12-24T16:46:36.222Z","avatar_url":"https://github.com/comatory.png","language":"Lua","readme":"# gh-co.nvim\n\n![gh-co demo](gh-co.gif)\n*Observe messages in bottom panel to see the codeowners of the file*\n\n[Github CODEOWNERS](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners) plugin for neovim. This plugin will help you identify code ownership for the files you are editing or you can identify the owners in your Git history.\n\n## Installation\n\nThe plugin has standard structure so any method should work fine.\n\n### [`lazy.nvim`](https://github.com/folke/lazy.nvim)\n\n```lua\n-- ~/.config/nvim/lua/plugins/gh-co.lua\nreturn {\n  \"comatory/gh-co.nvim\",\n  config = function()\n     vim.keymap.set(\"n\", \"\u003cleader\u003egg\", \":GhCoWho\u003cCR\u003e\", {})\n  end\n}\n```\n\n### [`vim.plug`](https://github.com/junegunn/vim-plug)\n\n`Plug 'comatory/gh-co.nvim'`\n\n## Quick start\n\n1. Open repository that has `CODEOWNERS` file. Check that it's accessible using `:GhCoShowFile`.\n2. Open a file, run `:GhCoWho`. You will see codeowner(s) in the bottom panel as a message.\n3. Open few different files with different owners, run `:GhCoWhos`, a new buffer with all the codeowners will be shown.\n4. Get a git commit SHA from the repository history, run `:GhCoGitWho \u003csha\u003e` to get a list of codeowners which affected given commit.\n\n## Features\n\n* show codeowner for currently opened file\n* show codeowners for all opened buffers\n* show codeowners for specific git commit via SHA\n* locate \u0026 open CODEOWNERS file\n* syntax highlighting for CODEOWNERS files\n\n## API\n\nThe plugin exposes several commands prefixed with `GhCo*`. There are no default key bindings for running these so it's up to you to configure it.\n\n### `:GhCoHealthcheck`\n\nShow whether plugin is running OK.\n\n### `:GhCoStatus`\n\nShows plugin configuration.\n\n### `:GhCoShowFile`\n\nOpen CODEOWNERS file in a buffer.\n\n### `:GhCoWho`\n\nShow codeowners for file in an active buffer.\n\n### `:GhCoWhos`\n\nShow codeowners for files in all buffers.\n\n### `:GhCoGitWho \u003cSHA\u003e`\n\nShow codeowners for files affected by commit SHA.\n\n## Development\n\nProject is using luarocks to manage dependencies. After cloning the repo run:\n\n```bash\nluarocks install --deps-only gh-co.nvim-0.0.5-1.rockspec\n```\n\n### Lint\n\nRun `PATH=\"./lua_modules/bin:PATH\" luacheck lua` to lint the codebase\n\n### Test\n\nRun `luarocks test`\n","funding_links":[],"categories":["Git"],"sub_categories":["GitHub"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomatory%2Fgh-co.nvim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcomatory%2Fgh-co.nvim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomatory%2Fgh-co.nvim/lists"}