Vue language server extension for coc.nvim.
Using vue-language-server
Note: latest vetur have changed filepath of server, make sure upgrade to
latest vetur if you're using vetur.dev.vlsPath
configuration.
If you like my extension, consider supporting me on Patreon or PayPal:
In your vim/neovim, run command:
:CocInstall coc-vetur
Note you have to install eslint
and eslint-plugin-vue
by:
npm i eslint eslint-plugin-vue -D
in your project root for this extension to work.
Make sure your workspace root is correct by :echo g:WorkspaceFolders
Language server features provided by vue-language-server.
vetur.ignoreProjectWarning
: Vetur will warn about not setup correctly for the project. You can disable it., default: false
vetur.useWorkspaceDependencies
: Use dependencies from workspace. Currently only for TypeScript., default: false
vetur.completion.autoImport
: Include completion for module export and auto import them, default: true
vetur.completion.useScaffoldSnippets
: Enable/disable Vetur's built-in scaffolding snippets, default: true
vetur.completion.tagCasing
: Casing conversion for tag completion, default: "kebab"
Valid options: ["initial","kebab"]
vetur.grammar.customBlocks
: Mapping from custom block tag name to language name. Used for generating grammar to support syntax highlighting for custom blocks, default: {"docs":"md","i18n":"json"}
vetur.validation.template
: Validate vue-html in using eslint-plugin-vue, default: true
vetur.validation.templateProps
: Validate props usage in region. Show error/warning for not passing declared props to child components and show error for passing wrongly typed interpolation expressions, default: false
vetur.validation.interpolation
: Validate interpolations in region using TypeScript language service, default: true
vetur.validation.style
: Validate css/scss/less/postcss in