{"id":13485095,"url":"https://github.com/yaegassy/coc-volar","last_synced_at":"2025-05-15T18:02:31.234Z","repository":{"id":36980719,"uuid":"389595809","full_name":"yaegassy/coc-volar","owner":"yaegassy","description":"Volar (Fast Vue Language Support) extension for coc.nvim","archived":false,"fork":false,"pushed_at":"2025-03-02T13:18:18.000Z","size":2066,"stargazers_count":282,"open_issues_count":7,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-31T22:17:16.228Z","etag":null,"topics":["coc","coc-extensions","coc-nvim","neovim","vim","vue"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@yaegassy/coc-volar","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":"2021-07-26T10:34:15.000Z","updated_at":"2025-03-13T00:44:01.000Z","dependencies_parsed_at":"2023-01-17T11:30:35.524Z","dependency_job_id":"e9c71886-8172-4f68-b0c6-3edce6df11fb","html_url":"https://github.com/yaegassy/coc-volar","commit_stats":{"total_commits":1255,"total_committers":2,"mean_commits":627.5,"dds":"0.014342629482071767","last_synced_commit":"215c0c31208ffe76008fd77bcb780ecafb7fd33e"},"previous_names":[],"tags_count":279,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaegassy%2Fcoc-volar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaegassy%2Fcoc-volar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaegassy%2Fcoc-volar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaegassy%2Fcoc-volar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yaegassy","download_url":"https://codeload.github.com/yaegassy/coc-volar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247744295,"owners_count":20988782,"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","neovim","vim","vue"],"created_at":"2024-07-31T17:01:45.719Z","updated_at":"2025-04-07T23:05:00.642Z","avatar_url":"https://github.com/yaegassy.png","language":"TypeScript","funding_links":[],"categories":["TypeScript","Language Support"],"sub_categories":[],"readme":"# coc-volar\n\n\u003e fork from a [vuejs/language-tools/extensions/vscode](https://github.com/vuejs/language-tools/tree/master/extensions/vscode)\n\n\n[Vue Language Features (Volar)](https://marketplace.visualstudio.com/items?itemName=vue.volar) extension for [coc.nvim](https://github.com/neoclide/coc.nvim)\n\u003cimg width=\"780\" alt=\"coc-volar-demo\" src=\"https://user-images.githubusercontent.com/188642/130296846-72ff5989-5853-46fb-a053-a979f7041b99.gif\"\u003e\n\n## Install\n\n```vim\n:CocInstall @yaegassy/coc-volar\n```\n\n\u003e scoped packages\n\n## Note\n\n- `coc-volar` version `v0.35.0` and later uses `vue-language-server` version `v2.x.x`. If you have `coc-typescript-vue-plugin` installed, please uninstall it as it will cause conflicts and errors.\n  - `:CocUninstall @yaegassy/coc-typescript-vue-plugin`\n- To utilize various language features such as `IntelliSense`, `Diagnostics`, and more in the `\u003cscript\u003e` blocks of `Vue` files, you need to install either `coc-tsserver` or `coc-tsserver-dev`.\n  - `:CocInstall coc-tsserver` or `:CocInstall coc-tsserver-dev`\n  - **Note**: `coc-volar` checks if `coc-tsserver` or `coc-tsserver-dev` are installed in the environment when opening a `Vue` file. If they are installed, `coc-volar` automatically starts `tsserver`.\n\n## [RECOMMENDED] Additional installation of \"watchman\"\n\nIn the `@vue/language-server` used by `coc-volar`, 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-volar` without `watchman`, but you may not be able to immediately use volar's IntelliSense with the newly added files.\n\nIn this case, please execute the command to restart the language server.\n\n- `:CocRestart`\n\n## workspaceFolders\n\nDepending on the project like mono repo or how Vim/Neovim is started, `workspaceFolders` may not be recognized correctly.\n\nIf `workspaceFolders` are not recognized correctly, the language server may parse unnecessary project folders, etc., slowing down the operation. Or Language Server may not work properly.\n\nThe default configuration of coc.nvim resolves to the directory where the `.git`, `.hg`, or `.projections.json` files reside as the workspace root.\n\n`coc-volar` has also already added `vite.config.ts`, `vite.config.js`, `vue.config.js` or `nuxt.config.ts` to the extension side to resolve workspace root.\n\nIf further customization is needed, set `b:coc_root_patterns` in \".vimrc/init.vim\".\n\n**Example**:\n\n```vim\n  au FileType vue let b:coc_root_patterns = ['.git', '.env', 'package.json', 'tsconfig.json', 'jsconfig.json', 'vite.config.ts', 'vite.config.js', 'vue.config.js', 'nuxt.config.ts']\n```\n\nFor more information, check this coc.nvim's wiki.\n\n- \u003chttps://github.com/neoclide/coc.nvim/wiki/Using-workspaceFolders\u003e\n\n## iskeyword\n\nIf the completion menu disappears when typing `-`, add the `iskeyword` setting to `.vimrc` / `init.vim`.\n\n```vim\nautocmd Filetype vue setlocal iskeyword+=-\n```\n\n## Configuration options\n\n- `volar.enable`: Enable coc-volar extension, default: `true`\n- `volar.useWorkspaceTsdk`: Use workspace (project) detected tsLibs in volar. if false, use coc-volar's built-in tsLibs, default: `false`\n- `volar.tsLocale`: Sets the locale used to report diagnostics message from typescript, valid option: `[\"cs\", \"de\", \"es\", \"fr\", \"it\", \"ja\", \"ko\", \"en\", \"pl\", \"pt-br\", \"ru\", \"tr\", \"zh-cn\", \"zh-tw\"]`, default: `\"en\"`\n- `volar.scaffoldSnippets.enable`: Enable/disable scaffold snippets completion. Typing `vue` or `vuedc` will output completion suggestions. This snippets completion feature will only work on the first line of the file, default: `true`\n- `volar.disableCompletion`: Disable completion from Volar, default: `false`\n- `volar.disableDiagnostics`: Disable diagnostics from Volar, default: `false`\n- `volar.disableFormatting`: Disable formatting from Volar, default: `false`\n- `volar.disableProgressNotifications`: Disable the initialization and workdone progress notifications, default: `false`\n- `vue.trace.server`: Traces the communication between coc.nvim and the language server, valid option: `[\"off\", \"messages\", \"verbose\"]`, default: `\"off\"`\n- `vue.server.path`: Custom path to volar server module, `~` and `$HOME` can also be used. If there is no setting, the built-in module will be used, default: `null`\n- `vue.server.maxOldSpaceSize`: Set `--max-old-space-size` option on server process. If you have problem on frequently `\"Request textDocument/** failed.\"` error, try setting higher memory(MB) on it, default: `null`\n- `vue.codeActions.enabled`: Enabled code actions, default: `true`\n- `vue.codeLens.enabled`: Enabled code lens, default: `true`\n- `vue.complete.casing.tags`: Preferred tag name case, valid options: `[\"autoKebab\", \"autoPascal\", \"kebab\", \"pascal\"]`, default: `\"autoPascal\"`\n- `vue.complete.casing.props`: Preferred attr name case, valid options: `[\"autoKebab\", \"autoCamel\", \"kebab\", \"camel\"]`, default: `\"autoKebab\"`\n- `vue.complete.defineAssignment`: Auto add `const props = ` before `defineProps` when selecting the completion item `props`. (also `emit` and `slots`), default: `true`\n- `vue.inlayHints.destructuredProps`: Show inlay hints for destructured props, default: `false`\n- `vue.inlayHints.missingProps`: Show inlay hints for missing required props, `false`\n- `vue.inlayHints.inlineHandlerLeading`: Show inlay hints for event argument in inline handlers, default: `false`\n- `vue.inlayHints.optionsWrapper`: Show inlay hints for component options wrapper for type support, default: `false`\n- `vue.inlayHints.vBindShorthand`: Show inlay hints for v-bind shorthand, default: `false`\n\n## Commands\n\n- `vue.action.restartServer`: Restart Vue server\n\n## More features\n\nOther major LSP feature are of course supported as well.\n\n\u003e completion, definition, typeDefinition, diagnostics, hover, signatureHelp, references, codeLens, formatting, rename and more...\n\n## Thanks\n\n- [vuejs/language-tools](https://github.com/vuejs/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-volar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyaegassy%2Fcoc-volar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyaegassy%2Fcoc-volar/lists"}