summaryrefslogtreecommitdiff
path: root/.config/nvim/ftplugin/dart.lua
blob: 3076d7dab47a60b01bc59288c0ceb6cbf437fb8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
if require("cfg.utils").check_lsp_client_active "dartls" then
  return
end

require("lspconfig").dartls.setup {
  cmd = { "dart", O.lang.dart.sdk_path, "--lsp" },
  on_attach = require("cfg.lsp").common_on_attach,
  init_options = {
    closingLabels = false,
    flutterOutline = false,
    onlyAnalyzeProjectsWithOpenFiles = false,
    outline = false,
    suggestFromUnimportedLibraries = true,
  },
}