.dotfiles/nvim/lua/lsp/servers/dartls.lua
Martin Lasson bcd0bb9a71 Add dartls
2025-02-04 23:31:23 +01:00

18 lines
470 B
Lua

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,
},
},
}