{"id":24844430,"url":"https://github.com/johnsaigle/cargo-expand.nvim","last_synced_at":"2026-04-19T14:01:33.024Z","repository":{"id":271935210,"uuid":"915001469","full_name":"johnsaigle/cargo-expand.nvim","owner":"johnsaigle","description":"A Neovim plugin for viewing expanded Rust.","archived":false,"fork":false,"pushed_at":"2025-02-05T22:56:59.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-26T07:44:03.114Z","etag":null,"topics":["cargo","neovim","neovim-plugin","rust","vim"],"latest_commit_sha":null,"homepage":"","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/johnsaigle.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}},"created_at":"2025-01-10T18:50:15.000Z","updated_at":"2025-02-05T22:57:02.000Z","dependencies_parsed_at":"2025-01-17T05:31:53.406Z","dependency_job_id":null,"html_url":"https://github.com/johnsaigle/cargo-expand.nvim","commit_stats":null,"previous_names":["johnsaigle/cargo-expand.nvim"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/johnsaigle/cargo-expand.nvim","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnsaigle%2Fcargo-expand.nvim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnsaigle%2Fcargo-expand.nvim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnsaigle%2Fcargo-expand.nvim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnsaigle%2Fcargo-expand.nvim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnsaigle","download_url":"https://codeload.github.com/johnsaigle/cargo-expand.nvim/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnsaigle%2Fcargo-expand.nvim/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32009239,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"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":["cargo","neovim","neovim-plugin","rust","vim"],"created_at":"2025-01-31T09:18:45.624Z","updated_at":"2026-04-19T14:01:32.965Z","avatar_url":"https://github.com/johnsaigle.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cargo-expand.nvim\n\nA Neovim plugin for viewing expanded Rust macros using `cargo expand`.\n\n## Installation\n\nUsing [lazy.nvim](https://github.com/folke/lazy.nvim):\n\n```lua\n{\n    'johnsaigle/cargo-expand.nvim',\n    config = function()\n        require('cargo-expand').setup(}\n    end\n}\n```\n\n## Usage\n\n- Open neovim in the directory containing the appropriate `Cargo.toml` file.\n- Place your cursor on any Rust identifier and run `:CargoExpand`. \n\nThis will:\n- Run `cargo expand` on your project\n- Switch to the expanded code in the current buffer\n- Add all occurrences to the quickfix list\n- Cache the expanded file\n\n## Requirements\n\n- Neovim \u003e= 0.8.0\n- `cargo-expand` tool (`cargo install cargo-expand`)\n\n## TODO\n\nThe script could be improved by finding the 'closest' `Cargo.toml` file to the file in the current buffer.\nThis would make it so that neovim doesn't need to be launched from the directory that has the right Cargo.toml file.\n- first check cwd\n- if Cargo.toml is virtual manfiest, look at options in child directories\n- otherwise, look at parent directory\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnsaigle%2Fcargo-expand.nvim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnsaigle%2Fcargo-expand.nvim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnsaigle%2Fcargo-expand.nvim/lists"}