From dc2dddeda23b98af0142351daf3f34536a261979 Mon Sep 17 00:00:00 2001 From: FlafyDev Date: Tue, 18 Apr 2023 15:33:38 +0300 Subject: [PATCH] fix: use correct dart cli options for lsp --- modules/languages/dart/config.nix | 2 +- modules/languages/dart/dart.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/languages/dart/config.nix b/modules/languages/dart/config.nix index 6cd9273..ff19ede 100644 --- a/modules/languages/dart/config.nix +++ b/modules/languages/dart/config.nix @@ -15,7 +15,7 @@ with builtins; let lspconfig.dartls.setup{ capabilities = capabilities; on_attach=default_on_attach; - cmd = {"${pkgs.dart}/bin/dart"}; + cmd = {"${pkgs.dart}/bin/dart", "language-server", "--protocol=lsp"}; ${optionalString (cfg.lsp.opts != null) "init_options = ${cfg.lsp.dartOpts}"} } ''; diff --git a/modules/languages/dart/dart.nix b/modules/languages/dart/dart.nix index 89e02d1..bc11d2c 100644 --- a/modules/languages/dart/dart.nix +++ b/modules/languages/dart/dart.nix @@ -15,7 +15,7 @@ with builtins; let lspconfig.dartls.setup{ capabilities = capabilities; on_attach=default_on_attach; - cmd = {"${pkgs.dart}/bin/dart"}; + cmd = {"${pkgs.dart}/bin/dart", "language-server", "--protocol=lsp"}; ${optionalString (cfg.lsp.opts != null) "init_options = ${cfg.lsp.dartOpts}"} } '';