{"id":13485274,"url":"https://github.com/itchyny/vim-gitbranch","last_synced_at":"2025-03-16T16:31:59.828Z","repository":{"id":16593517,"uuid":"19347916","full_name":"itchyny/vim-gitbranch","owner":"itchyny","description":"Provides the branch name of the current git repository","archived":false,"fork":false,"pushed_at":"2021-11-30T01:27:18.000Z","size":7,"stargazers_count":207,"open_issues_count":0,"forks_count":17,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-02-27T11:41:37.839Z","etag":null,"topics":["vim","vim-plugins","vim-scripts"],"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/itchyny.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}},"created_at":"2014-05-01T15:09:03.000Z","updated_at":"2025-02-12T07:44:27.000Z","dependencies_parsed_at":"2022-07-22T05:01:56.893Z","dependency_job_id":null,"html_url":"https://github.com/itchyny/vim-gitbranch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itchyny%2Fvim-gitbranch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itchyny%2Fvim-gitbranch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itchyny%2Fvim-gitbranch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itchyny%2Fvim-gitbranch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itchyny","download_url":"https://codeload.github.com/itchyny/vim-gitbranch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243822295,"owners_count":20353500,"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":["vim","vim-plugins","vim-scripts"],"created_at":"2024-07-31T17:01:53.663Z","updated_at":"2025-03-16T16:31:59.568Z","avatar_url":"https://github.com/itchyny.png","language":"Vim script","readme":"# vim-gitbranch\n## Usage\nThis plugin provides a function which returns the name of the git branch.\n```vim\n:echo gitbranch#name()\n```\n\nYou can use this function to integrate with statusline plugins.\n\nFor example, in order to show git branch using [lightline.vim](https://github.com/itchyny/lightline.vim), configure as follows.\n```vim\nlet g:lightline = {\n      \\ 'active': {\n      \\   'left': [ [ 'mode', 'paste' ],\n      \\             [ 'gitbranch', 'readonly', 'filename', 'modified' ] ]\n      \\ },\n      \\ 'component_function': {\n      \\   'gitbranch': 'gitbranch#name'\n      \\ },\n      \\ }\n```\nSee the [README.md of lightline](https://github.com/itchyny/lightline.vim) for further details.\n\n## Installation\nInstall with your favorite plugin manager.\n\n## Author\nitchyny (https://github.com/itchyny)\n\n## License\nThis software is released under the MIT License, see LICENSE.\n","funding_links":[],"categories":["Vim Script"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitchyny%2Fvim-gitbranch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitchyny%2Fvim-gitbranch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitchyny%2Fvim-gitbranch/lists"}