diff options
| author | Romario López <romariolopezc@gmail.com> | 2021-11-15 02:49:26 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-15 00:49:26 -0800 |
| commit | 6429f34e8e4eb07358d2b39554fdc3982b28e0c7 (patch) | |
| tree | 84c9529ea58853e62fa256e2d40d02a5b6b0d502 /lua/lspconfig/dartls.lua | |
| parent | docs: update server_configurations.md (diff) | |
| download | nvim-lspconfig-6429f34e8e4eb07358d2b39554fdc3982b28e0c7.tar nvim-lspconfig-6429f34e8e4eb07358d2b39554fdc3982b28e0c7.tar.gz nvim-lspconfig-6429f34e8e4eb07358d2b39554fdc3982b28e0c7.tar.bz2 nvim-lspconfig-6429f34e8e4eb07358d2b39554fdc3982b28e0c7.tar.lz nvim-lspconfig-6429f34e8e4eb07358d2b39554fdc3982b28e0c7.tar.xz nvim-lspconfig-6429f34e8e4eb07358d2b39554fdc3982b28e0c7.tar.zst nvim-lspconfig-6429f34e8e4eb07358d2b39554fdc3982b28e0c7.zip | |
fix(dartls): update initialization options (#1345)
* align settings and initialization options with flutter-tools.nvim
Diffstat (limited to 'lua/lspconfig/dartls.lua')
| -rw-r--r-- | lua/lspconfig/dartls.lua | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/lua/lspconfig/dartls.lua b/lua/lspconfig/dartls.lua index a88effa6..9a14960b 100644 --- a/lua/lspconfig/dartls.lua +++ b/lua/lspconfig/dartls.lua @@ -36,11 +36,17 @@ configs[server_name] = { filetypes = { 'dart' }, root_dir = util.root_pattern 'pubspec.yaml', init_options = { - onlyAnalyzeProjectsWithOpenFiles = false, + onlyAnalyzeProjectsWithOpenFiles = true, suggestFromUnimportedLibraries = true, - closingLabels = false, - outline = false, - flutterOutline = false, + closingLabels = true, + outline = true, + flutterOutline = true, + }, + settings = { + dart = { + completeFunctionCalls = true, + showTodos = true, + }, }, }, docs = { |
