generated from redhat-developer/new-project-template
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
You can use [Vue Language Server](https://github.com/vuejs/language-tools/tree/master/packages/language-server) by following these instructions: | ||
* [Install Node.js](https://nodejs.org/en/download) | ||
* [npm install -g @vue/language-server](https://www.npmjs.com/package/@volar/vue-language-server) | ||
* [npm install -g typescript](https://www.npmjs.com/package/typescript) | ||
|
||
Configure, example on windows: | ||
* Server > Command > `vue-language-server.cmd --stdio` OR `node "C:/Users/${user.name}/AppData/Roaming/npm/node_modules/@vue/language-server/bin/vue-language-server.js" --stdio` | ||
* Mappings > File name patterns > press "+" > File name patterns like "`*.vue`" and language id like "`vue`" | ||
* Configuration: `{}` | ||
* Initialization Options, need set `${user.name}`: | ||
``` JSON | ||
{ | ||
"typescript": { | ||
"tsdk": "C:/Users/${user.name}/AppData/Roaming/npm/node_modules/typescript/lib" | ||
}, | ||
"vue": { | ||
"hybridMode": false | ||
} | ||
} | ||
``` | ||
|
||
You can use [Vue highlight](https://github.com/vuejs/vue-syntax-highlight) in the TextMate by following these instructions: | ||
* Download and unzip in a folder | ||
* File -> Settings -> Editor -> TextMate Bundles | ||
* And press "+" `Select Path` to folder with highlight |