diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-01-04 11:45:37 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2023-01-04 11:45:37 +0100 |
| commit | da9235af861e30af135b931e892371b504775896 (patch) | |
| tree | 57780997e770525f7e56b579ede45f8748b4c17f /supported-servers.lua | |
| parent | babb3850c96c548a5df189ddb095ffcf80dc5054 (diff) | |
| download | vis-lspc-da9235af861e30af135b931e892371b504775896.tar.gz vis-lspc-da9235af861e30af135b931e892371b504775896.zip | |
use lspc version when starting dart language-server
Diffstat (limited to 'supported-servers.lua')
| -rw-r--r-- | supported-servers.lua | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/supported-servers.lua b/supported-servers.lua index 49f8628..c5017f2 100644 --- a/supported-servers.lua +++ b/supported-servers.lua @@ -1,6 +1,11 @@ -- Copyright (c) 2022 Florian Fischer. All rights reserved. -- Use of this source code is governed by a MIT license found in the LICENSE file. -- List of supported and preconfigured language server implementations +local source_str = debug.getinfo(1, 'S').source:sub(2) +local source_path = source_str:match('(.*/)') + +local lspc = dofile(source_path .. 'lspc.lua') + local clangd = {name = 'clangd', cmd = 'clangd'} local typescript = { name = 'typescript', cmd = 'typescript-language-server --stdio' } @@ -19,5 +24,9 @@ return { typescript = typescript, -- dart language server configuration -- https://github.com/dart-lang/sdk/blob/master/pkg/analysis_server/tool/lsp_spec/README.md - dart = { name = 'dart', cmd = 'dart language-server --client-id vis-lspc --client-version 0.1.5' } + dart = { + name = 'dart', + cmd = 'dart language-server --client-id vis-lspc --client-version ' .. + lspc.version, + }, } |
