diff options
| author | Hirokazu Hata <h.hata.ai.t@gmail.com> | 2020-11-25 00:09:08 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-25 00:09:08 +0900 |
| commit | dbb7396ecc6fa5325779ed8c1589c1c903de37b6 (patch) | |
| tree | a04e8934baf92ea41fcecf6973545d39783a76d2 | |
| parent | Merge pull request #405 from mjlbach/feature/specify-unzip-dependency (diff) | |
| parent | These init_options need to be booleans in order to take effect (diff) | |
| download | nvim-lspconfig-dbb7396ecc6fa5325779ed8c1589c1c903de37b6.tar nvim-lspconfig-dbb7396ecc6fa5325779ed8c1589c1c903de37b6.tar.gz nvim-lspconfig-dbb7396ecc6fa5325779ed8c1589c1c903de37b6.tar.bz2 nvim-lspconfig-dbb7396ecc6fa5325779ed8c1589c1c903de37b6.tar.lz nvim-lspconfig-dbb7396ecc6fa5325779ed8c1589c1c903de37b6.tar.xz nvim-lspconfig-dbb7396ecc6fa5325779ed8c1589c1c903de37b6.tar.zst nvim-lspconfig-dbb7396ecc6fa5325779ed8c1589c1c903de37b6.zip | |
Merge pull request #358 from PatOConnor43/change-dart-init-options
[dartls] Change init_options to booleans
| -rw-r--r-- | README.md | 10 | ||||
| -rw-r--r-- | lua/lspconfig/dartls.lua | 10 |
2 files changed, 10 insertions, 10 deletions
@@ -1562,11 +1562,11 @@ require'lspconfig'.dartls.setup{} cmd = { "dart", "./snapshots/analysis_server.dart.snapshot", "--lsp" } filetypes = { "dart" } init_options = { - closingLabels = "true", - flutterOutline = "false", - onlyAnalyzeProjectsWithOpenFiles = "false", - outline = "true", - suggestFromUnimportedLibraries = "true" + closingLabels = false, + flutterOutline = false, + onlyAnalyzeProjectsWithOpenFiles = false, + outline = false, + suggestFromUnimportedLibraries = true } root_dir = root_pattern("pubspec.yaml") ``` diff --git a/lua/lspconfig/dartls.lua b/lua/lspconfig/dartls.lua index 1baf05d6..d7ca9458 100644 --- a/lua/lspconfig/dartls.lua +++ b/lua/lspconfig/dartls.lua @@ -33,11 +33,11 @@ configs[server_name] = { filetypes = {"dart"}; root_dir = util.root_pattern("pubspec.yaml"); init_options = { - onlyAnalyzeProjectsWithOpenFiles = "false", - suggestFromUnimportedLibraries = "true", - closingLabels = "true", - outline = "true", - flutterOutline= "false" + onlyAnalyzeProjectsWithOpenFiles = false, + suggestFromUnimportedLibraries = true, + closingLabels = false, + outline = false, + flutterOutline = false }; }; docs = { |
