summaryrefslogtreecommitdiff
path: root/lua/lsp/dart-ls.lua
diff options
context:
space:
mode:
authorBiser Stoilov <[email protected]>2021-03-30 09:17:40 +0300
committerGitHub <[email protected]>2021-03-30 02:17:40 -0400
commit5f22c1bace8b5e77d33d4a8cf5ebe6c1a763f0d8 (patch)
treef411690f41faaf55185bfdbd887a13a4456d12c9 /lua/lsp/dart-ls.lua
parent48286254b7761da2f85bd7bd361188cb448139b5 (diff)
Define shell + php lsp + dart lsp + flutter + relative number (#188)
Diffstat (limited to 'lua/lsp/dart-ls.lua')
-rw-r--r--lua/lsp/dart-ls.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/lua/lsp/dart-ls.lua b/lua/lsp/dart-ls.lua
new file mode 100644
index 00000000..99f41311
--- /dev/null
+++ b/lua/lsp/dart-ls.lua
@@ -0,0 +1,11 @@
+require'lspconfig'.dartls.setup{
+ cmd = { "dart", O.dart.sdk_path, "--lsp" },
+ on_attach = require'lsp'.common_on_attach,
+ init_options = {
+ closingLabels = false,
+ flutterOutline = false,
+ onlyAnalyzeProjectsWithOpenFiles = false,
+ outline = false,
+ suggestFromUnimportedLibraries = true
+ }
+} \ No newline at end of file