Add dartls
This commit is contained in:
parent
77e2a2e8f1
commit
bcd0bb9a71
1 changed files with 18 additions and 0 deletions
18
nvim/lua/lsp/servers/dartls.lua
Normal file
18
nvim/lua/lsp/servers/dartls.lua
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
return {
|
||||||
|
cmd = { "dart", "language-server", "--protocol=lsp" },
|
||||||
|
filetypes = { "dart" },
|
||||||
|
root_markers = { "pubspec.yaml" },
|
||||||
|
init_options = {
|
||||||
|
onlyAnalyzeProjectsWithOpenFiles = true,
|
||||||
|
suggestFromUnimportedLibraries = true,
|
||||||
|
closingLabels = true,
|
||||||
|
outline = true,
|
||||||
|
flutterOutline = true,
|
||||||
|
},
|
||||||
|
settings = {
|
||||||
|
dart = {
|
||||||
|
completeFunctionCalls = true,
|
||||||
|
showTodos = true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue