{"id":36882593,"url":"https://github.com/smiggiddy/git-oil.nvim","last_synced_at":"2026-01-12T15:26:10.104Z","repository":{"id":331402423,"uuid":"1126471025","full_name":"smiggiddy/git-oil.nvim","owner":"smiggiddy","description":null,"archived":false,"fork":false,"pushed_at":"2026-01-03T01:37:33.000Z","size":70,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-07T18:34:38.516Z","etag":null,"topics":["git","neovim","oil-nvim"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/smiggiddy.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-02T01:25:18.000Z","updated_at":"2026-01-04T05:24:47.000Z","dependencies_parsed_at":"2026-01-08T15:09:58.232Z","dependency_job_id":null,"html_url":"https://github.com/smiggiddy/git-oil.nvim","commit_stats":null,"previous_names":["smiggiddy/git-oil.nvim"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/smiggiddy/git-oil.nvim","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smiggiddy%2Fgit-oil.nvim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smiggiddy%2Fgit-oil.nvim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smiggiddy%2Fgit-oil.nvim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smiggiddy%2Fgit-oil.nvim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smiggiddy","download_url":"https://codeload.github.com/smiggiddy/git-oil.nvim/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smiggiddy%2Fgit-oil.nvim/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28340700,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T12:22:26.515Z","status":"ssl_error","status_checked_at":"2026-01-12T12:22:10.856Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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","neovim","oil-nvim"],"created_at":"2026-01-12T15:26:10.019Z","updated_at":"2026-01-12T15:26:10.091Z","avatar_url":"https://github.com/smiggiddy.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# git-oil.nvim\n\nGit status integration for [oil.nvim](https://github.com/stevearc/oil.nvim). Shows git status indicators in your oil file browser with colored filenames and status symbols.\n\nBased on [oil-git.nvim](https://github.com/benomahony/oil-git.nvim) by Ben O'Mahony, with performance improvements including caching and debouncing.\n\n![screenshot](screenshot.png)\n\n## Features\n\n- Colored filenames based on git status\n- Status symbols displayed as virtual text\n- **Staged vs unstaged distinction** - different colors/symbols for staged, unstaged, and partially staged files\n- **Directory status** - directories show status of their most important child file\n- **Merge conflict indicators** - clearly see files with conflicts\n- **Async git status** - non-blocking on Neovim 0.10+ (falls back to sync on older versions)\n- Cached git status (avoids repeated `git status` calls)\n- Debounced updates for rapid events\n- Auto-refresh when returning from terminal (lazygit, etc.)\n- Respects your colorscheme (only sets highlights if not already defined)\n- **Enable/disable toggle** - turn the plugin on/off at runtime\n- **Buffer-local keymaps** - `gr` to refresh, `gd` to toggle (customizable)\n\n## Status Indicators\n\n| Symbol | Highlight | Meaning |\n|--------|-----------|---------|\n| `+` | Green | Added (staged) |\n| `●` | Green | Staged modification |\n| `○` | Yellow | Unstaged modification |\n| `±` | Orange | Partially staged (both staged and unstaged changes) |\n| `→` | Purple | Renamed |\n| `✗` | Red | Deleted (unstaged) |\n| `●` | Green | Deleted (staged) |\n| `?` | Blue | Untracked |\n| `!` | Red (bold) | Merge conflict |\n\n## Installation\n\n### lazy.nvim\n\n```lua\n{\n  \"smiggiddy/git-oil.nvim\",\n  dependencies = { \"stevearc/oil.nvim\" },\n  opts = {},\n}\n```\n\n### packer.nvim\n\n```lua\nuse {\n  \"smiggiddy/git-oil.nvim\",\n  requires = { \"stevearc/oil.nvim\" },\n  config = function()\n    require(\"git-oil\").setup()\n  end,\n}\n```\n\n## Configuration\n\n```lua\nrequire(\"git-oil\").setup({\n  -- Enable/disable the plugin (default: true)\n  enabled = true,\n\n  -- Show git status on directories (default: true)\n  -- Directories will show the status of their \"most important\" child\n  show_directory_status = true,\n\n  -- Cache timeout in milliseconds (default: 2000)\n  cache_timeout = 2000,\n\n  -- Debounce delay in milliseconds (default: 200)\n  debounce_delay = 200,\n\n  -- Keymaps (only active in oil buffers)\n  -- Set to false to disable a keymap\n  keymaps = {\n    refresh = \"gr\", -- Refresh git status\n    toggle = \"gd\",  -- Toggle plugin on/off\n  },\n\n  -- Customize status symbols\n  symbols = {\n    added = \"+\",\n    modified = \"~\",\n    renamed = \"→\",\n    deleted = \"✗\",\n    untracked = \"?\",\n    conflict = \"!\",\n    staged = \"●\",\n    unstaged = \"○\",\n    partially_staged = \"±\",\n  },\n\n  -- Override default highlight colors\n  highlights = {\n    OilGitAdded = { fg = \"#a6e3a1\" },\n    OilGitModified = { fg = \"#f9e2af\" },\n    OilGitRenamed = { fg = \"#cba6f7\" },\n    OilGitDeleted = { fg = \"#f38ba8\" },\n    OilGitUntracked = { fg = \"#89b4fa\" },\n    OilGitConflict = { fg = \"#f38ba8\", bold = true },\n    OilGitStagedModified = { fg = \"#a6e3a1\" },\n    OilGitUnstagedModified = { fg = \"#f9e2af\" },\n    OilGitPartiallyStaged = { fg = \"#fab387\" },\n    OilGitStagedDeleted = { fg = \"#a6e3a1\" },\n    OilGitUnstagedDeleted = { fg = \"#f38ba8\" },\n  },\n})\n```\n\n## Usage\n\nThe plugin works automatically once installed. Open any directory with oil.nvim and git-tracked files will show their status.\n\n### Keymaps\n\nThese keymaps are available in oil buffers by default:\n\n| Key | Action |\n|-----|--------|\n| `gr` | Refresh git status |\n| `gd` | Toggle plugin on/off |\n\nTo customize or disable keymaps:\n\n```lua\nrequire(\"git-oil\").setup({\n  keymaps = {\n    refresh = \"\u003cleader\u003egr\", -- Custom key\n    toggle = false,         -- Disable this keymap\n  },\n})\n```\n\n### API\n\n```lua\n-- Manual refresh (also invalidates cache)\nrequire(\"git-oil\").refresh()\n\n-- Enable/disable the plugin at runtime\nrequire(\"git-oil\").enable()\nrequire(\"git-oil\").disable()\nrequire(\"git-oil\").toggle()\n\n-- Check if plugin is enabled\nif require(\"git-oil\").enabled then\n  -- ...\nend\n```\n\n## Directory Status\n\nWhen `show_directory_status` is enabled (default), directories will show the status of their most important child file. The priority order is:\n\n1. Conflict (highest)\n2. Partially staged\n3. Modified\n4. Added\n5. Renamed/Deleted\n6. Untracked (lowest)\n\nFor example, if a directory contains both an untracked file and a modified file, the directory will show the modified indicator.\n\n## Async Support\n\nOn Neovim 0.10+, git status is fetched asynchronously using `vim.system()`, which prevents UI freezes in large repositories. On older Neovim versions, it falls back to synchronous `vim.fn.system()`.\n\n## Improvements over oil-git.nvim\n\n- **Caching**: Git status is cached per repository with configurable TTL\n- **Debouncing**: Rapid events (typing, focus changes) are debounced to prevent UI thrashing\n- **Performance**: Removed `--ignored` flag from git status (major perf improvement in large repos)\n- **Cache invalidation**: Automatically invalidates cache on terminal close and git-related events\n- **Async**: Non-blocking git status on Neovim 0.10+\n- **Staged/unstaged distinction**: See at a glance what's staged vs unstaged\n- **Directory status**: Navigate faster by seeing which directories have changes\n- **Conflict indicators**: Easily spot merge conflicts\n\n## License\n\nMIT - see [LICENSE](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmiggiddy%2Fgit-oil.nvim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmiggiddy%2Fgit-oil.nvim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmiggiddy%2Fgit-oil.nvim/lists"}