summaryrefslogtreecommitdiff
path: root/.config/nvim/ftplugin/dart.lua
blob: 419d0400dc29becac0fdcd3fe466ce7e294f1a79 (plain)
1
2
3
4
5
6
7
8
9
10
11
require("lspconfig").dartls.setup {
  cmd = { "dart", O.lang.dart.sdk_path, "--lsp" },
  on_attach = require("lsp").common_on_attach,
  init_options = {
    closingLabels = false,
    flutterOutline = false,
    onlyAnalyzeProjectsWithOpenFiles = false,
    outline = false,
    suggestFromUnimportedLibraries = true,
  },
}