{"id":46527316,"url":"https://github.com/taigrr/neocrush.nvim","last_synced_at":"2026-04-03T00:42:06.099Z","repository":{"id":331417640,"uuid":"1125051891","full_name":"taigrr/neocrush.nvim","owner":"taigrr","description":null,"archived":false,"fork":false,"pushed_at":"2026-02-26T08:15:40.000Z","size":753,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-02-26T13:33:39.497Z","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":"0bsd","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/taigrr.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":"AGENTS.md","dco":null,"cla":null}},"created_at":"2025-12-30T04:21:06.000Z","updated_at":"2026-02-26T08:15:40.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/taigrr/neocrush.nvim","commit_stats":null,"previous_names":["taigrr/neocrush.nvim"],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/taigrr/neocrush.nvim","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taigrr%2Fneocrush.nvim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taigrr%2Fneocrush.nvim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taigrr%2Fneocrush.nvim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taigrr%2Fneocrush.nvim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/taigrr","download_url":"https://codeload.github.com/taigrr/neocrush.nvim/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taigrr%2Fneocrush.nvim/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30244538,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-08T00:58:18.660Z","status":"online","status_checked_at":"2026-03-08T02:00:06.215Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2026-03-06T21:00:28.267Z","updated_at":"2026-03-08T04:00:34.377Z","avatar_url":"https://github.com/taigrr.png","language":"Lua","readme":"# neocrush.nvim\n\nNeovim plugin for [neocrush](https://github.com/taigrr/neocrush) integration.\n\n![Demo](assets/demo.gif)\n\n## Features\n\n- **Edit Highlighting**: Flash highlights on AI-generated edits (like yank highlight)\n- **Auto-focus**: Automatically focus and scroll to edited files\n- **AI Locations Picker**: Custom Telescope picker for AI-annotated code locations with 3-pane UI\n- **Terminal Management**: Toggle/focus/restart Crush terminal\n- **Cursor Sync**: Send cursor position to neocrush for context awareness\n- **Crush Version Manager**: Browse and install specific crush versions from GitHub or local repo\n- **Health Check**: Verify setup with `:checkhealth neocrush`\n\n## Requirements\n\n- Neovim \u003e= 0.10\n- [neocrush](https://github.com/taigrr/neocrush) binary in PATH\n- [crush](https://github.com/charmbracelet/crush) CLI for terminal integration\n- [telescope.nvim](https://github.com/nvim-telescope/telescope.nvim) for AI locations picker and CVM\n- [glaze.nvim](https://github.com/taigrr/glaze.nvim) — manages Go binary installation/updates automatically\n\n## Installation\n\n```lua\n-- lazy.nvim\n{\n  'taigrr/neocrush.nvim',\n  dependencies = { 'nvim-telescope/telescope.nvim', 'taigrr/glaze.nvim' },\n  event = 'VeryLazy',\n  opts = {\n    -- All options are optional with sensible defaults\n    highlight_group = 'IncSearch',  -- Flash highlight group\n    highlight_duration = 900,        -- Flash duration (ms)\n    auto_focus = true,               -- Auto-focus edited files\n    terminal_width = 80,             -- Terminal width in columns\n    terminal_cmd = 'crush',          -- Command to run in terminal\n\n    -- CVM configuration (optional)\n    cvm = {\n      upstream = 'charmbracelet/crush',  -- GitHub repo for releases\n      local_repo = '~/code/crush',       -- Default path for :CrushCvmLocal\n    },\n\n    -- Optional keybindings (none set by default)\n    keys = {\n      toggle = '\u003cleader\u003ecc',\n      focus = '\u003cleader\u003ecf',\n      logs = '\u003cleader\u003ecl',\n      cancel = '\u003cleader\u003ecx',\n      restart = '\u003cleader\u003ecr',\n      paste = '\u003cleader\u003ecp',  -- Works in normal (clipboard) and visual (selection) mode\n      cvm_releases = '\u003cleader\u003ecvr',\n      cvm_local = '\u003cleader\u003ecvl',\n    },\n  },\n}\n```\n\n**Note**: The plugin starts the LSP on `VimEnter`, so use `event = 'VeryLazy'` to load after UI is ready.\n\n## Breaking Changes\n\n### v2.0.0\n\n**BREAKING**: Removed `:CrushInstall` and `:CrushUpdate` commands.\n\nBinary management is now handled by [glaze.nvim](https://github.com/taigrr/glaze.nvim).\nUse `:GlazeInstall` and `:GlazeUpdate` to install/update binaries.\n\nFor version-specific installs (pre-releases, testing), use the Crush Version Manager:\n\n- `:CrushCvmReleases` - Browse and install from GitHub releases\n- `:CrushCvmLocal` - Build from local repository\n\n## Commands\n\n| Command             | Description                                   |\n| ------------------- | --------------------------------------------- |\n| `:CrushToggle`      | Toggle the Crush terminal window              |\n| `:CrushOpen`        | Open the Crush terminal                       |\n| `:CrushClose`       | Close the Crush terminal (keeps buffer)       |\n| `:CrushFocus`       | Focus the Crush terminal                      |\n| `:CrushWidth \u003cn\u003e`   | Set terminal width to n columns               |\n| `:CrushLogs`        | Show Crush logs in a new buffer               |\n| `:CrushCancel`      | Cancel current operation (sends `\u003cEsc\u003e\u003cEsc\u003e`) |\n| `:CrushRestart`     | Kill and restart the Crush terminal           |\n| `:CrushPaste [reg]` | Paste register (default: `+`) or selection    |\n| `:CrushFocusToggle` | Toggle auto-focus behavior                    |\n| `:CrushFocusOn/Off` | Enable/disable auto-focus                     |\n| `:CrushCvmReleases` | Browse and install crush releases from GitHub |\n| `:CrushCvmLocal`    | Browse and install from local repo commits    |\n\n### Pasting Registers\n\n`:CrushPaste` defaults to system clipboard (`+`).\nPass a register name to paste from a specific register:\n\n```vim\n:CrushPaste a   \" Paste from register a\n:CrushPaste \"   \" Paste from unnamed register\n:CrushPaste *   \" Paste from primary selection (X11)\n```\n\nIn visual mode, `:CrushPaste` pastes the current selection.\n\n## Crush Version Manager (CVM)\n\nCVM lets you browse and install specific crush versions:\n\n### `:CrushCvmReleases`\n\nOpens a Telescope picker with all GitHub releases. The currently installed version is highlighted in green.\n\n**Requirements**: `gh` CLI (authenticated), `go`, `telescope.nvim`\n\n### `:CrushCvmLocal [path]`\n\nOpens a Telescope picker with commits from a local crush repo. HEAD is highlighted in blue.\nSelecting a commit checks it out and runs `go install .`.\n\n**Requirements**: `git`, `go`, `telescope.nvim`\n\nIf `[path]` is omitted, uses `cvm.local_repo` from config.\n\n### CVM Configuration\n\n```lua\ncvm = {\n  -- GitHub repo for releases (controls API endpoint and go install path)\n  upstream = 'charmbracelet/crush',\n\n  -- Default path for :CrushCvmLocal when no argument given\n  local_repo = '~/code/crush',\n}\n```\n\nSet `upstream` to a fork's `owner/repo` to install from a different source.\n\n## API\n\n```lua\nlocal crush = require('neocrush')\n\ncrush.toggle()              -- Toggle terminal\ncrush.open() / crush.close() / crush.focus()\ncrush.set_width(100)\n\ncrush.logs()                -- Show logs in new buffer\ncrush.cancel()              -- Cancel operation (\u003cEsc\u003e\u003cEsc\u003e)\ncrush.restart()             -- Kill and restart terminal\ncrush.paste()               -- Paste clipboard\ncrush.paste('a')            -- Paste register \"a\"\ncrush.paste_selection()     -- Paste visual selection\n\ncrush.toggle_auto_focus()   -- Toggle auto-focus\ncrush.start_lsp()           -- Manually start LSP\ncrush.get_client()          -- Get LSP client instance\n```\n\n## How It Works\n\n1. **LSP Integration**: Starts `neocrush` on `VimEnter` with no filetype restrictions\n2. **Edit Handler**: Overrides `workspace/applyEdit` to flash highlight edits and scroll them into view\n3. **Cursor Sync**: Sends `crush/cursorMoved` notifications for context awareness\n4. **Terminal**: Manages a persistent terminal buffer for the Crush CLI\n\n## AI Locations Picker\n\nWhen an AI agent calls the `show_locations` MCP tool, neocrush displays a custom Telescope picker:\n\n```\n┌─────────────────────┬────────────────────────────┐\n│ file.go:42          │                            │\n│ other.go:15         │   [file preview]           │\n│ \u003e handler.go:88  ◄──│                            │\n│ utils.go:23         │                            │\n├─────────────────────┴────────────────────────────┤\n│ This handler validates user input but doesn't    │\n│ sanitize the email field. Relevant because you   │\n│ asked about potential security issues.           │\n└──────────────────────────────────────────────────┘\n```\n\n**Keybindings:**\n\n- `\u003cCR\u003e` - Jump to selected location\n- `\u003cC-q\u003e` - Send all locations to quickfix list\n- `\u003cM-q\u003e` - Send selected location to quickfix list\n\nThe bottom pane shows the AI's explanation of why each location is relevant to your query.\n\n## Important Notes\n\n**Do NOT add neocrush to Mason/lspconfig.**\nThis plugin manages the LSP client directly.\nIf you have neocrush in your LSP config, remove it.\n\n## Known Limitations\n\nWhen Crush edits open files, you may see external modification warnings.\nAdd `vim.o.autoread = true` to auto-reload unchanged files.\n","funding_links":[],"categories":["AI"],"sub_categories":["Diagnostics"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaigrr%2Fneocrush.nvim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftaigrr%2Fneocrush.nvim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaigrr%2Fneocrush.nvim/lists"}