{"id":13479318,"url":"https://github.com/fannheyward/coc-rust-analyzer","last_synced_at":"2025-05-14T02:06:15.031Z","repository":{"id":37545857,"uuid":"205199369","full_name":"fannheyward/coc-rust-analyzer","owner":"fannheyward","description":"rust-analyzer extension for coc.nvim","archived":false,"fork":false,"pushed_at":"2025-05-01T01:05:53.000Z","size":2484,"stargazers_count":1149,"open_issues_count":6,"forks_count":43,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-05-01T02:22:45.598Z","etag":null,"topics":["coc","coc-extensions","coc-nvim","rust","rust-analyzer"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/fannheyward.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},"funding":{"github":"fannheyward","patreon":"fannheyward"}},"created_at":"2019-08-29T15:56:07.000Z","updated_at":"2025-05-01T01:05:50.000Z","dependencies_parsed_at":"2024-01-02T05:31:26.526Z","dependency_job_id":"42c68f9e-bd1c-4130-9a35-26d5c7bd2438","html_url":"https://github.com/fannheyward/coc-rust-analyzer","commit_stats":{"total_commits":1548,"total_committers":24,"mean_commits":64.5,"dds":0.5012919896640826,"last_synced_commit":"a09af639d8bbce773757f410d401ec84ef582486"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fannheyward%2Fcoc-rust-analyzer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fannheyward%2Fcoc-rust-analyzer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fannheyward%2Fcoc-rust-analyzer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fannheyward%2Fcoc-rust-analyzer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fannheyward","download_url":"https://codeload.github.com/fannheyward/coc-rust-analyzer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254052696,"owners_count":22006716,"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":["coc","coc-extensions","coc-nvim","rust","rust-analyzer"],"created_at":"2024-07-31T16:02:13.556Z","updated_at":"2025-05-14T02:06:10.021Z","avatar_url":"https://github.com/fannheyward.png","language":"TypeScript","funding_links":["https://github.com/sponsors/fannheyward","https://patreon.com/fannheyward","https://paypal.me/fannheyward"],"categories":["TypeScript","Language Support"],"sub_categories":[],"readme":"# coc-rust-analyzer\n\n\u003c!-- markdownlint-disable no-inline-html --\u003e\n\u003ca href=\"https://github.com/sponsors/fannheyward\"\u003e\u003cimg src=\"https://user-images.githubusercontent.com/345274/133218454-014a4101-b36a-48c6-a1f6-342881974938.png\" alt=\"GitHub Sponsors\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://patreon.com/fannheyward\"\u003e\u003cimg src=\"https://c5.patreon.com/external/logo/become_a_patron_button.png\" alt=\"Patreon donate button\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://paypal.me/fannheyward\"\u003e\u003cimg src=\"https://user-images.githubusercontent.com/345274/104303610-41149f00-5505-11eb-88b2-5a95c53187b4.png\" alt=\"PayPal donate button\" /\u003e\u003c/a\u003e\n\n[rust-analyzer](https://github.com/rust-lang/rust-analyzer) for Vim/Neovim, works as an extension with coc.nvim.\n\n\u003c!-- markdownlint-disable-next-line --\u003e\n\u003cimg width=\"567\" alt=\"10\" src=\"https://user-images.githubusercontent.com/345274/67060118-34808a00-f18e-11e9-9d76-22fff11b5802.png\"\u003e\n\n## Install\n\n`:CocInstall coc-rust-analyzer`\n\n\u003e remove `rust-analyzer` config from `coc-settings.json` if you've set\n\n## Notes\n\nIt's recommended to add `$CARGO_HOME` to `workspace.ignoredFolders` to stop rust-analyzer runs `cargo check` on sysroot crates:\n\n```json\n\"workspace.ignoredFolders\": [\n  \"$HOME\",\n  \"$HOME/.cargo/**\",\n  \"$HOME/.rustup/**\"\n],\n```\n\n## Configurations\n\nThis extension is configured using a jsonc file. You can open this configuration file using the command `:CocConfig`, and it is typically located at `$HOME/.config/nvim/coc-settings.json`. You can get the configurations list from the [package.json](https://github.com/fannheyward/coc-rust-analyzer/blob/master/package.json#L72) file of this extension.\n\n## Commands\n\nYou can use these commands by `:CocCommand XYZ`.\n\n| Command | Description |\n| -- | -- |\n| rust-analyzer.analyzerStatus | Show rust-analyzer status |\n| rust-analyzer.debug | List available runnables of current file and debug the selected one |\n| rust-analyzer.expandMacro | Expand macro recursively |\n| rust-analyzer.explainError | Explain the currently hovered error message |\n| rust-analyzer.joinLines | Join lines |\n| rust-analyzer.matchingBrace | Find matching brace |\n| rust-analyzer.memoryUsage | Memory Usage (Clears Database) |\n| rust-analyzer.moveItemUp | Move item up |\n| rust-analyzer.moveItemDown | Move item down |\n| rust-analyzer.openDocs | Open docs under cursor |\n| rust-analyzer.parentModule | Locate parent module |\n| rust-analyzer.peekTests | Peek related tests |\n| rust-analyzer.reload | Restart rust-analyzer server |\n| rust-analyzer.reloadWorkspace | Reload workspace |\n| rust-analyzer.run | List available runnables of current file and run the selected one |\n| rust-analyzer.serverVersion | Show current Rust Analyzer server version |\n| rust-analyzer.ssr | Structural Search Replace |\n| rust-analyzer.viewSyntaxTree | Show syntax tree |\n| rust-analyzer.testCurrent | Test Current |\n| rust-analyzer.install | Install latest `rust-analyzer` from [GitHub release](https://github.com/rust-lang/rust-analyzer/releases) |\n| rust-analyzer.upgrade | Download latest `rust-analyzer` from [GitHub release](https://github.com/rust-lang/rust-analyzer/releases) |\n| rust-analyzer.viewHir | View Hir |\n| rust-analyzer.viewMir | View Mir |\n| rust-analyzer.viewFileText | View File Text |\n| rust-analyzer.viewCrateGraph | View Crate Graph |\n| rust-analyzer.viewFullCrateGraph | View Crate Graph (Full) |\n| rust-analyzer.shuffleCrateGraph | Shuffle Crate Graph |\n| rust-analyzer.runFlycheck | Run flycheck |\n| rust-analyzer.cancelFlycheck | Cancel running flychecks |\n| rust-analyzer.clearFlycheck | Clear flycheck diagnostics |\n| rust-analyzer.rebuildProcMacros | Rebuild proc macros and build scripts |\n| rust-analyzer.interpretFunction | Interpret Function |\n\n## License\n\nMIT\n\n---\n\n\u003e This extension is built with [create-coc-extension](https://github.com/fannheyward/create-coc-extension)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffannheyward%2Fcoc-rust-analyzer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffannheyward%2Fcoc-rust-analyzer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffannheyward%2Fcoc-rust-analyzer/lists"}