{"id":13484924,"url":"https://github.com/yaegassy/coc-astro","last_synced_at":"2025-08-20T20:31:52.851Z","repository":{"id":131660435,"uuid":"611556604","full_name":"yaegassy/coc-astro","owner":"yaegassy","description":"Astro extension for coc.nvim","archived":false,"fork":false,"pushed_at":"2024-10-27T23:25:28.000Z","size":472,"stargazers_count":34,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-17T19:37:57.209Z","etag":null,"topics":["astro","coc","coc-extensions","coc-nvim","neovim","vim"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@yaegassy/coc-astro","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/yaegassy.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}},"created_at":"2023-03-09T03:59:14.000Z","updated_at":"2025-04-28T16:01:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"39f89af0-2f5d-4885-8b49-f649603076ea","html_url":"https://github.com/yaegassy/coc-astro","commit_stats":{"total_commits":260,"total_committers":2,"mean_commits":130.0,"dds":0.06538461538461537,"last_synced_commit":"7178b81d50a9fec6b7d220d66af6d8e7a1a49c02"},"previous_names":[],"tags_count":57,"template":false,"template_full_name":null,"purl":"pkg:github/yaegassy/coc-astro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaegassy%2Fcoc-astro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaegassy%2Fcoc-astro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaegassy%2Fcoc-astro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaegassy%2Fcoc-astro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yaegassy","download_url":"https://codeload.github.com/yaegassy/coc-astro/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaegassy%2Fcoc-astro/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271378680,"owners_count":24749192,"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","status":"online","status_checked_at":"2025-08-20T02:00:09.606Z","response_time":69,"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":["astro","coc","coc-extensions","coc-nvim","neovim","vim"],"created_at":"2024-07-31T17:01:38.969Z","updated_at":"2025-08-20T20:31:52.556Z","avatar_url":"https://github.com/yaegassy.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# coc-astro\n\n\u003e fork from a [astro-vscode](https://github.com/withastro/language-tools/tree/main/packages/vscode)\n\nAstro extension for [coc.nvim](https://github.com/neoclide/coc.nvim)\n\n\u003cimg width=\"846\" alt=\"coc-astro-demo\" src=\"https://user-images.githubusercontent.com/188642/223913692-d44911ac-cf96-4d12-99c4-7d6a4baf34ca.png\"\u003e\n\n## Install\n\n**CocInstall**:\n\n```vim\n:CocInstall @yaegassy/coc-astro\n```\n\n\u003e scoped packages\n\n**e.g. vim-plug**:\n\n```vim\nPlug 'yaegassy/coc-astro', {'do': 'yarn install --frozen-lockfile'}\n```\n\n## Note\n\n### Filetype related\n\nThe \"filetype\" must be `astro` for this extension to work.\n\nInstall \"astro\" related plugin. (e.g. [vim-astro](https://github.com/wuelnerdotexe/vim-astro) or [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter)).\n\n### How to set up TypeScript in your Astro project for coc.nvim\n\n1. You need [coc-tsserver](https://github.com/neoclide/coc-tsserver). Please install it if you haven't already.\n\n1. `coc-astro` has a setting to use `@astrojs/ts-plugin` in the extension as well as `astro-vscode`, so you can use typescript as it is.\n\n## [RECOMMENDED] Additional installation of \"watchman\"\n\nIn the `@astrojs/language-server` used by `coc-astro`, it utilizes the `workspace/didChangeWatchedFiles` notification to watch files within the project.\n\nIn coc.nvim, it is recommended to install [watchman](https://facebook.github.io/watchman/) in order to utilize this feature.\n\n- See: \u003chttps://github.com/neoclide/coc.nvim/wiki/Using-coc-extensions\u003e\n\nIf you have difficulty installing `watchman`, you can use `coc-astro` without `watchman`, but you may not be able to immediately use IntelliSense with the newly added files.\n\nIn this case, please execute the command to restart the language server.\n\n- `:CocRestart`\n\n## Dealing with text corruption when determining completion item\n\ncoc-astro provides a setting called `astro.disableResolveCompletionItem`. Set this setting to `true` in `coc-settings.json`. The default is `false`.\n\nPlease note that if this setting is set to `true`, feature such as \"auto-import\" upon completion item determination will not work.\n\n**coc-settings.json**:\n\n```json\n{\n  \"astro.disableResolveCompletionItem\": true\n}\n```\n\n- Related issues in upstream\n  - \u003chttps://github.com/withastro/language-tools/issues/664\u003e\n\n## Configuration options\n\n- `astro.enable`: Enable coc-astro extension, default: `true`\n- `astro.disableResolveCompletionItem`: Disable `completionItem/resolve` feature, default: `false`\n- `astro.useWorkspaceTsdk`: Use workspace (project) detected tsLibs in astro. if false, use coc-astro's built-in tsLibs, default: `false`\n- `astro.language-server.ls-path`: Path to the language server executable. You won't need this in most cases, set this only when needing a specific version of the language server, default: `null`\n- `astro.language-server.runtime`: Path to the node executable used to execute the language server. You won't need this in most cases, default: `null`\n- `astro.trace.server`: Traces the communication between coc.nvim and the language server, valid option: `[\"off\", \"messages\", \"verbose\"]`, default: `\"off\"`\n\n## Commands\n\n- `astro.findFileReferences`: Astro: Find File References\n- `astro.reloadProject`: Astro: Reload Project\n\n## Thanks\n\n- [withastro/language-tools](https://github.com/withastro/language-tools)\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%2Fyaegassy%2Fcoc-astro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyaegassy%2Fcoc-astro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyaegassy%2Fcoc-astro/lists"}