fix: use correct dart cli options for lsp

This commit is contained in:
FlafyDev 2023-04-18 15:33:38 +03:00
parent 9af9bd7f3a
commit dc2dddeda2
2 changed files with 2 additions and 2 deletions

View file

@ -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}"}
}
'';

View file

@ -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}"}
}
'';