Skip to content

Commit

Permalink
Switch to vls package and latest version (#68)
Browse files Browse the repository at this point in the history
The vue-language-server package is deprecated in favor of vls.
  • Loading branch information
rchl authored Jul 22, 2020
1 parent b0dd280 commit 0898711
Show file tree
Hide file tree
Showing 4 changed files with 1,474 additions and 1,723 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
# LSP-vue

Vue support for Sublime's LSP plugin.
This is a helper package that automatically installs and updates the
[Vue Language Server]() (vetur) for you.

This comment has been minimized.

Copy link
@rwols

rwols Jul 22, 2020

Member

The link seems to be missing here?

This comment has been minimized.

Copy link
@rchl

rchl Jul 22, 2020

Author Member

Thanks. Fixed in ebcdfd0


To use this package, you must have the [LSP](https://packagecontrol.io/packages/LSP) package installed as well.

### Installation

* Install [LSP](https://packagecontrol.io/packages/LSP), [Vue Syntax Highlight](https://packagecontrol.io/packages/Vue%20Syntax%20Highlight) and `LSP-vue` from Package Control.
* Restart Sublime.

### Configuration

Configure the vue language server by accessing `Preferences > Package Settings > LSP > Servers > LSP-vue`.
Open configuration file using command palette with `Preferences: LSP-vue Settings` command or opening it from the Sublime menu (`Preferences > Package Settings > LSP > Servers > LSP-vue`).
2 changes: 1 addition & 1 deletion plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def plugin_unloaded():
class LspVuePlugin(NpmClientHandler):
package_name = __package__
server_directory = 'server'
server_binary_path = os.path.join(server_directory, 'node_modules', 'vue-language-server', 'bin', 'vls')
server_binary_path = os.path.join(server_directory, 'node_modules', 'vls', 'bin', 'vls')

@classmethod
def on_client_configuration_ready(cls, configuration: dict):
Expand Down
Loading

0 comments on commit 0898711

Please sign in to comment.