{"id":28801149,"url":"https://github.com/sdglbl/context-groups.nvim","last_synced_at":"2026-03-09T17:17:38.897Z","repository":{"id":292106885,"uuid":"964737726","full_name":"SDGLBL/context-groups.nvim","owner":"SDGLBL","description":null,"archived":false,"fork":false,"pushed_at":"2025-08-05T05:08:59.000Z","size":203,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-05T06:31:03.189Z","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/SDGLBL.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-11T17:47:22.000Z","updated_at":"2025-08-05T05:09:02.000Z","dependencies_parsed_at":"2025-07-04T04:25:56.088Z","dependency_job_id":"cfa15d2b-58b5-458a-ba4c-69fca0d38684","html_url":"https://github.com/SDGLBL/context-groups.nvim","commit_stats":null,"previous_names":["sdglbl/context-groups.nvim"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SDGLBL/context-groups.nvim","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SDGLBL%2Fcontext-groups.nvim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SDGLBL%2Fcontext-groups.nvim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SDGLBL%2Fcontext-groups.nvim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SDGLBL%2Fcontext-groups.nvim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SDGLBL","download_url":"https://codeload.github.com/SDGLBL/context-groups.nvim/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SDGLBL%2Fcontext-groups.nvim/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30304173,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T14:33:48.460Z","status":"ssl_error","status_checked_at":"2026-03-09T14:33:48.027Z","response_time":61,"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":[],"created_at":"2025-06-18T07:07:12.815Z","updated_at":"2026-03-09T17:17:38.891Z","avatar_url":"https://github.com/SDGLBL.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Context-Groups.nvim\n\nA Neovim plugin for managing context files for AI-assisted coding.\n\n## Overview\n\nContext Groups is a Neovim plugin designed to enhance AI-assisted coding by managing context files on a per-buffer basis. It allows users to maintain groups of related files that provide additional context for AI models like Claude, GPT, and others.\n\n## Features\n\n- Per-buffer context group management\n- Project-level configuration persistence\n- Automatic project root detection\n- Telescope integration for file selection and preview\n- Enhanced diagnostics and code sharing:\n  - Inline LSP diagnostics with code context\n  - Git diff integration for tracking changes\n  - Buffer path utilities for easy reference\n- AI-optimized code formatting and export capabilities\n\n## Installation\n\n### Using packer.nvim\n\n```lua\nuse {\n  'username/context-groups.nvim',\n  requires = {\n    'nvim-lua/plenary.nvim',\n    'nvim-telescope/telescope.nvim',\n  }\n}\n```\n\n### Using lazy.nvim\n\n```lua\n{\n  'username/context-groups.nvim',\n  dependencies = {\n    'nvim-lua/plenary.nvim',\n    'nvim-telescope/telescope.nvim',\n  }\n}\n```\n\n## Setup\n\nBasic setup with default settings:\n\n```lua\nrequire('context-groups').setup()\n```\n\nSetup with custom configuration:\n\n```lua\nrequire('context-groups').setup({\n  keymaps = {\n    add_context = \"\u003cleader\u003eca\",\n    add_context_all = \"\u003cleader\u003ecA\",\n    show_context = \"\u003cleader\u003ecs\",\n    code2prompt_current = \"\u003cleader\u003ecy\",\n    code2prompt = \"\u003cleader\u003ecY\",\n    lsp_diagnostics_current = \"\u003cleader\u003ecl\",\n    lsp_diagnostics_all = \"\u003cleader\u003ecL\",\n    lsp_diagnostics_inline_current = \"\u003cleader\u003eci\",\n    lsp_diagnostics_inline_all = \"\u003cleader\u003ecI\",\n    git_diff_current = \"\u003cleader\u003ecg\",\n    git_diff_all_modified = \"\u003cleader\u003ecG\",\n    buffer_paths = \"\u003cleader\u003ecp\",\n  },\n  storage_path = vim.fn.stdpath(\"data\") .. \"/context-groups\",\n  project_markers = {\n    \".git\",\n    \".svn\",\n    \"package.json\",\n    \"Cargo.toml\",\n    \"go.mod\",\n    \"requirements.txt\",\n  },\n})\n```\n\n## Usage\n\n### Basic Workflow\n\n1. **Add files to context group:**\n   - Use `:ContextGroupAdd` command or press `\u003cleader\u003eca` (respects ignore patterns)\n   - Use `\u003cleader\u003ecA` to add files without any ignore patterns (includes .venv, node_modules, etc.)\n   - Select files using Telescope interface\n   - Press \u003cCR\u003e to add a file or \u003cC-Space\u003e to add without closing\n\n2. **View current context group:**\n   - Use `:ContextGroupShow` command or press `\u003cleader\u003ecs`\n   - Preview file contents\n   - Remove files using \u003cC-d\u003e\n   - Open files in split with \u003cC-v\u003e\n\n3. **Get enhanced code context:**\n   - Copy buffer content with LSP diagnostics: `:ContextGroupLSPDiagnosticsInlineCurrent` or `\u003cleader\u003eci`\n   - Copy all buffers with LSP diagnostics: `:ContextGroupLSPDiagnosticsInlineAll` or `\u003cleader\u003ecI`\n   - Copy buffer with Git diff comparison: `:ContextGroupGitDiffCurrent` or `\u003cleader\u003ecg`\n   - Copy all modified buffers with Git diffs: `:ContextGroupGitDiffAllModified` or `\u003cleader\u003ecG`\n   - Copy all buffer paths: `:ContextGroupCopyBufferPaths` or `\u003cleader\u003ecp`\n\n4. **Format code for AI tools:**\n   - Use `:ContextGroupBuffer2PromptCurrent` or `\u003cleader\u003ecy` to format current buffer for sharing with AI tools\n   - Use `:ContextGroupBuffer2Prompt` or `\u003cleader\u003ecY` to format all open buffer contents for sharing with AI tools\n\n## Recent Updates\n\n- **July 2025**: Major refactoring to reorganize module structure and extract components into focused modules (diagnostics, git_diff, export, storage, project utilities).\n- **July 2025**: Removed LSP integration and language handlers to simplify the codebase and focus on core context management functionality.\n- **May 2025**: Added Git diff integration for tracking file changes and comparing with Git history.\n- **May 2025**: Added inline LSP diagnostics feature for enhanced error visualization within code context.\n- **May 2025**: Added buffer paths utilities for easy reference and sharing.\n- **March 2025**: Enhanced buffer formatting for better AI tool integration.\n\n## License\n\nMIT License\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsdglbl%2Fcontext-groups.nvim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsdglbl%2Fcontext-groups.nvim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsdglbl%2Fcontext-groups.nvim/lists"}