Gathering detailed insights and metrics for vue-component-type-helpers
Gathering detailed insights and metrics for vue-component-type-helpers
Gathering detailed insights and metrics for vue-component-type-helpers
Gathering detailed insights and metrics for vue-component-type-helpers
⚡ High-performance Vue language tooling based-on Volar.js
npm install vue-component-type-helpers
Module System
Unable to determine the module system for this package.
Min. Node Version
Typescript Support
Node Version
NPM Version
5,878 Stars
5,131 Commits
408 Forks
42 Watching
5 Branches
200 Contributors
Updated on 27 Nov 2024
TypeScript (84.8%)
Vue (12.92%)
JavaScript (2.19%)
HTML (0.09%)
Cumulative downloads
Total Downloads
Last day
-0.6%
255,464
Compared to previous day
Last week
2.7%
1,306,816
Compared to previous week
Last month
13.9%
5,518,378
Compared to previous month
Last year
408.2%
49,029,598
Compared to previous year
No dependencies detected.
⚡ High-performance Vue language tooling based-on Volar.js
💬 #language-tools on our Discord Server
Vue Language Features
@vue/language-server
@vue/typescript-plugin
yaegassy/coc-volar ⚡ 🤝 🅿️
Vue language client for coc.nvim
neovim/nvim-lspconfig ⚡ 🤝
Vue language server configuration for Neovim
@vue/language-server
version ^2.0.0
)Note: The "Take Over" mode has been discontinued. Instead, a new "Hybrid" mode has been introduced. In this mode, the Vue Language Server exclusively manages the CSS/HTML sections. As a result, you must run @vue/language-server
in conjunction with a TypeScript server that employs @vue/typescript-plugin
. Below is a streamlined configuration for Neovim's LSP, updated to accommodate the language server following the upgrade to version 2.0.0
.
For nvim-lspconfig versions below v1.0.0 use tsserver instead of ts_ls, e.g.
lspconfig.ts_ls.setup
1-- If you are using mason.nvim, you can get the ts_plugin_path like this 2-- local mason_registry = require('mason-registry') 3-- local vue_language_server_path = mason_registry.get_package('vue-language-server'):get_install_path() .. '/node_modules/@vue/language-server' 4 5local vue_language_server_path = '/path/to/@vue/language-server' 6 7local lspconfig = require('lspconfig') 8 9lspconfig.ts_ls.setup { 10 init_options = { 11 plugins = { 12 { 13 name = '@vue/typescript-plugin', 14 location = vue_language_server_path, 15 languages = { 'vue' }, 16 }, 17 }, 18 }, 19 filetypes = { 'typescript', 'javascript', 'javascriptreact', 'typescriptreact', 'vue' }, 20} 21 22-- No need to set `hybridMode` to `true` as it's the default value 23lspconfig.volar.setup {}
@vue/language-server
version ^2.0.7
)Note: If hybridMode
is set to false
Volar
will run embedded ts_ls
therefore there is no need to run it separately.
For more information see #4119
Make sure you have typescript installed globally or pass the location to volar
Use volar for all .{vue,js,ts,tsx,jsx}
files.
1local lspconfig = require('lspconfig') 2 3-- lspconfig.ts_ls.setup {} 4lspconfig.volar.setup { 5 filetypes = { 'typescript', 'javascript', 'javascriptreact', 'typescriptreact', 'vue' }, 6 init_options = { 7 vue = { 8 hybridMode = false, 9 }, 10 }, 11}
Use volar
for only .vue
files and ts_ls
for .ts
and .js
files.
1local lspconfig = require('lspconfig') 2 3lspconfig.ts_ls.setup { 4 init_options = { 5 plugins = { 6 { 7 name = '@vue/typescript-plugin', 8 location = '/path/to/@vue/language-server', 9 languages = { 'vue' }, 10 }, 11 }, 12 }, 13} 14 15lspconfig.volar.setup { 16 init_options = { 17 vue = { 18 hybridMode = false, 19 }, 20 }, 21}
Check out this discussion
mattn/vim-lsp-settings ⚡
Vue language server auto configuration for vim-lsp
sublimelsp/LSP-volar 🤝
Vue language client for Sublime
kabiaa/atom-ide-volar
Vue language client for Atom
emacs-lsp/lsp-mode (jadestrong/lsp-volar) ⚡ 🤝
Vue language client for Emacs
tommasongr/nova-vue
Vue language client for Nova
xiaoxin-sky/lapce-vue
Vue language client for Lapce
Kingwl/monaco-volar
Vue language support for Monaco on Browser
WebStorm
Built-in integration for @vue/language-server
Eclipse WildWebDeveloper
Vue language server configuration for Eclipse
* ⚡ support multiple servers
* 🤝 support take over mode
* 🅿️ support extra preview features
If you want to work on the volar extension follow these commands to set up your local development environment.
🔎 Note that you will need pnpm - you can download it here: https://pnpm.io/installation.
1git clone https://github.com/vuejs/language-tools.git 2cd language-tools 3pnpm install 4pnpm run build
The recommended way to develop the volar extension is to use the Debug Tools provided by VSCode. Alternatively, you can run one of the scripts defined in the package.json file.
❗ You should always use the debug launch configs or package.json scripts defined in the root of the project.
Additional info for contributing to open source projects can be found here: https://docs.github.com/en/get-started/quickstart/contributing-to-projects
To develop with upstream Volar.js modules, you can setup workspace with https://github.com/volarjs/workspace.
No vulnerabilities found.
No security vulnerabilities found.