{"id":13898581,"url":"https://github.com/kristijanhusak/vim-dirvish-git","last_synced_at":"2025-04-30T10:50:06.702Z","repository":{"id":34786899,"uuid":"130909518","full_name":"kristijanhusak/vim-dirvish-git","owner":"kristijanhusak","description":"Git support for dirvish.vim","archived":false,"fork":false,"pushed_at":"2022-05-21T04:42:46.000Z","size":18,"stargazers_count":57,"open_issues_count":3,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-30T10:50:01.937Z","etag":null,"topics":["dirvish","git","neovim","vim"],"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/kristijanhusak.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":"2018-04-24T20:22:51.000Z","updated_at":"2025-02-07T19:46:43.000Z","dependencies_parsed_at":"2022-08-25T08:50:41.499Z","dependency_job_id":null,"html_url":"https://github.com/kristijanhusak/vim-dirvish-git","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/kristijanhusak%2Fvim-dirvish-git","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kristijanhusak%2Fvim-dirvish-git/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kristijanhusak%2Fvim-dirvish-git/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kristijanhusak%2Fvim-dirvish-git/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kristijanhusak","download_url":"https://codeload.github.com/kristijanhusak/vim-dirvish-git/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251685293,"owners_count":21627269,"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":["dirvish","git","neovim","vim"],"created_at":"2024-08-06T18:04:21.627Z","updated_at":"2025-04-30T10:50:06.669Z","avatar_url":"https://github.com/kristijanhusak.png","language":"Vim script","funding_links":[],"categories":["Vim Script"],"sub_categories":[],"readme":"# vim-dirvish-git\n\nPlugin for [dirvish.vim](https://github.com/justinmk/vim-dirvish) that shows git status flags.\nSame as [nerdtree-git-plugin](https://github.com/Xuyuanp/nerdtree-git-plugin) for [NERDTree](https://github.com/scrooloose/nerdtree).\n\nCurrently tested only on Linux.\n\n![screenshot](https://i.imgur.com/izrVegA.png)\n\n## Requirements\n\n* [dirvish.vim](https://github.com/justinmk/vim-dirvish)\n* (Neo)Vim with `conceal` feature (`has('conceal')` should return `1`)\n* git\n\n## Installation\nInstall the plugin alongside [dirvish.vim](https://github.com/justinmk/vim-dirvish) with your favorite plugin manager.\n\nI'm using [vim-plug](https://github.com/junegunn/vim-plug)\n\n```vimL\nPlug 'justinmk/vim-dirvish'\nPlug 'kristijanhusak/vim-dirvish-git'\n```\n\nThats it!\n\n## Mappings\nFollowing mappings are available by default:\n\n`]f` - jump to next \"git\" file\n`[f` - jump to previous \"git\" file\n\nTo change mappings to use for example `\u003cC-n\u003e` for next and `\u003cC-p\u003e` for previous file add this to your vimrc:\n\n```vimL\nautocmd vimrc FileType dirvish nmap \u003csilent\u003e\u003cbuffer\u003e\u003cC-n\u003e \u003cPlug\u003e(dirvish_git_next_file)\nautocmd vimrc FileType dirvish nmap \u003csilent\u003e\u003cbuffer\u003e\u003cC-p\u003e \u003cPlug\u003e(dirvish_git_prev_file)\n```\n\n## Customization\nIgnored files are not marked by default. If you want them to be marked, add this to your vimrc:\n\n```vimL\nlet g:dirvish_git_show_ignored = 1\n```\n\nThese are default indicators used that can be overridden in vimrc:\n\n```vimL\n  let g:dirvish_git_indicators = {\n  \\ 'Modified'  : '✹',\n  \\ 'Staged'    : '✚',\n  \\ 'Untracked' : '✭',\n  \\ 'Renamed'   : '➜',\n  \\ 'Unmerged'  : '═',\n  \\ 'Ignored'   : '☒',\n  \\ 'Unknown'   : '?'\n  \\ }\n```\n\nTo change font color you can update any of these highlighting groups.\n\nHere's short example how it's set up by default:\n```vimL\n  let l:modified = 'guifg=#EBCB8B ctermfg=3'\n  let l:added = 'guifg=#A3BE8C ctermfg=2'\n  let l:unmerged = 'guifg=#BF616A ctermfg=1'\n\n  silent exe 'hi default DirvishGitModified '.l:modified\n  silent exe 'hi default DirvishGitStaged '.l:added\n  silent exe 'hi default DirvishGitRenamed '.l:modified\n  silent exe 'hi default DirvishGitUnmerged '.l:unmerged\n  silent exe 'hi default DirvishGitIgnored guifg=NONE guibg=NONE gui=NONE cterm=NONE ctermfg=NONE ctermbg=NONE'\n  silent exe 'hi default DirvishGitUntracked guifg=NONE guibg=NONE gui=NONE cterm=NONE ctermfg=NONE ctermbg=NONE'\n  \" Untracked dir linked to Dirvish default dir color\n  silent exe 'hi default link DirvishGitUntrackedDir DirvishPathTail'\n```\n\nTo override any of these, just add a highlight group to your vimrc.\nJust make sure it's **after** your colorscheme setup\n\n```vimL\ncolorscheme gruvbox\n\" Highlight dirvish modified files with blue color\nhi DirvishGitModified guifg=#0000FF\n```\n\nIcons are shown by default, to hide the icons and only show the Git status with \ncolors, add this to your vimrc:\n\n```vimL\nlet g:dirvish_git_show_icons = 0\n```\n\n## Thanks to:\n* [nerdtree-git-plugin](https://github.com/Xuyuanp/nerdtree-git-plugin)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkristijanhusak%2Fvim-dirvish-git","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkristijanhusak%2Fvim-dirvish-git","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkristijanhusak%2Fvim-dirvish-git/lists"}