{"id":48068400,"url":"https://github.com/macthecadillac/lightline-gitdiff","last_synced_at":"2026-04-04T14:38:14.851Z","repository":{"id":81738731,"uuid":"135095393","full_name":"macthecadillac/lightline-gitdiff","owner":"macthecadillac","description":"A minimalistic addon to lightline to show a concise summary of changes since the last commit using git diff.","archived":false,"fork":false,"pushed_at":"2024-12-01T18:57:14.000Z","size":23,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-01T19:35:09.520Z","etag":null,"topics":["git","git-diff","lightline","neovim","statusline","vim","vim-plugin"],"latest_commit_sha":null,"homepage":"","language":"Vim Script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/macthecadillac.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2018-05-28T01:28:51.000Z","updated_at":"2024-12-01T18:58:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"3013b341-e74d-4fbe-b218-7dae528de2a0","html_url":"https://github.com/macthecadillac/lightline-gitdiff","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/macthecadillac/lightline-gitdiff","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macthecadillac%2Flightline-gitdiff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macthecadillac%2Flightline-gitdiff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macthecadillac%2Flightline-gitdiff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macthecadillac%2Flightline-gitdiff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/macthecadillac","download_url":"https://codeload.github.com/macthecadillac/lightline-gitdiff/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macthecadillac%2Flightline-gitdiff/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31403121,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["git","git-diff","lightline","neovim","statusline","vim","vim-plugin"],"created_at":"2026-04-04T14:38:14.493Z","updated_at":"2026-04-04T14:38:14.845Z","avatar_url":"https://github.com/macthecadillac.png","language":"Vim Script","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lightline-gitdiff\n\nA minimalistic addon to the great lightline plugin to show a concise summary of\nchanges since the last commit.\n\n## TODO\n- [ ] Make compatible with vim8 async features\n\n## Requirements\n\n#### Git\n\nLightline-gitdiff is known to work with git 2.11 or above. This plugin was\ntested on Debian 9 and testing. Older versions of git should work but that is\nnot guaranteed.\n\nThis plugin uses Neovim's job-control API if neovim is detected. Calls to `git`\nare otherwise synchronous. Note that the plugin might lag on write/load if your\nshell is set to `fish` and that `has('nvim')` is `0`. Work with vim8's async\nfeatures is planned.\n\n#### [Lightline](https://github.com/itchyny/lightline.vim)\n\n## Installation\n\n[vim-plug](https://github.com/junegunn/vim-plug)\n\nAdd the following line to your `init.vim`/`.vimrc`\n\n```vim\nPlug 'macthecadillac/lightline-gitdiff'\n```\n\n## Configuration\n\n### Available configuration options\n\n```vim\n\" mostly cosmetic settings\nlet g:lightline_gitdiff#indicator_added = '+'\nlet g:lightline_gitdiff#indicator_modified = '!'\nlet g:lightline_gitdiff#indicator_deleted = '-'\n\" disable diff stats if the window width is less than this number\nlet g:lightline_gitdiff#min_winwidth = 70\n\" add a space between the indicator and the diff count\nlet g:lightline_gitdiff#indicator_pad = v:true\n\" hide indicators that read zero\nlet g:lightline_gitdiff#indicator_hide_zero = v:false\n\" in case vim did not finish writing the file before we call git-diff\nlet g:lightline_gitdiff#cmd_general_delay = 0.01\n\" vim often takes longer on first write\nlet g:lightline_gitdiff#cmd_first_write_delay = 0.5\n```\n\nThese defaults could be overridden in your configurations.\n\nTo integrate with lightline, use `lightline_gitdiff#get_status()` as the hook.\n\n### Example configuration\n\n```vim\n\nlet g:lightline = {\n  \\   'active': {\n  \\     'left': [['mode', 'paste'],\n  \\              ['gitbranch', 'gitstatus', 'filename']],\n  \\   },\n  \\   'component': {\n  \\     'gitstatus': '%\u003c%{lightline_gitdiff#get_status()}',\n  \\   },\n  \\   'component_visible_condition': {\n  \\     'gitstatus': 'lightline_gitdiff#get_status() !=# \"\"',\n  \\   },\n  \\ }\n\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmacthecadillac%2Flightline-gitdiff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmacthecadillac%2Flightline-gitdiff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmacthecadillac%2Flightline-gitdiff/lists"}