Skip to content

Commit cc76913

Browse files
committed
Update LanguageClient to use internal LS
1 parent c3a6cfe commit cc76913

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"clean": "rm -rf lib/",
1515
"build": "webpack",
1616
"els-build": "cd elixir-ls && mix deps.get && mix elixir_ls.release -o ../els-release",
17-
"prepack": "npm run clean && npm run build"
17+
"prepack": "npm run clean && npm run build && npm run els-build"
1818
},
1919
"repository": "github:amiralies/coc-elixir",
2020
"engines": {

src/index.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
// @flow
22

3-
import { LanguageClient, workspace, services, ExtensionContext } from 'coc.nvim';
3+
import { LanguageClient, services, ExtensionContext } from 'coc.nvim';
44

55
exports.activate = (context: ExtensionContext) => {
6-
const config: Object = workspace.getConfiguration().get('elixir', {});
7-
6+
const command = context.asAbsolutePath('./els-release/language_server.sh');
87
const serverOptions = {
9-
command: config.pathToEls,
8+
command,
109
};
1110

1211
const clientOptions = {

0 commit comments

Comments
 (0)