diff options
| author | Christopher Fujino <fujino@google.com> | 2022-06-02 23:38:55 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-03 08:38:55 +0200 |
| commit | ed8784904bfc3740a02db56b3410ba3b426f4c26 (patch) | |
| tree | e868b197c27cb63d0dcf2bf21cda096d661dc657 /lua | |
| parent | style: fix bad formatting (#1944) (diff) | |
| download | nvim-lspconfig-ed8784904bfc3740a02db56b3410ba3b426f4c26.tar nvim-lspconfig-ed8784904bfc3740a02db56b3410ba3b426f4c26.tar.gz nvim-lspconfig-ed8784904bfc3740a02db56b3410ba3b426f4c26.tar.bz2 nvim-lspconfig-ed8784904bfc3740a02db56b3410ba3b426f4c26.tar.lz nvim-lspconfig-ed8784904bfc3740a02db56b3410ba3b426f4c26.tar.xz nvim-lspconfig-ed8784904bfc3740a02db56b3410ba3b426f4c26.tar.zst nvim-lspconfig-ed8784904bfc3740a02db56b3410ba3b426f4c26.zip | |
fix(dartls): explicitly pass the protocol to dartls (#1943)
Explicitly pass `--protocol=lsp` to the Dart LSP server.
Fixes #1942
Works around upstream issue dart-lang/sdk#49157
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/dartls.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/lspconfig/server_configurations/dartls.lua b/lua/lspconfig/server_configurations/dartls.lua index a426cf6d..83eda99f 100644 --- a/lua/lspconfig/server_configurations/dartls.lua +++ b/lua/lspconfig/server_configurations/dartls.lua @@ -2,7 +2,7 @@ local util = require 'lspconfig.util' return { default_config = { - cmd = { 'dart', 'language-server' }, + cmd = { 'dart', 'language-server', '--protocol=lsp' }, filetypes = { 'dart' }, root_dir = util.root_pattern 'pubspec.yaml', init_options = { |
