Skip to main content

Dart

info

You can enable the extra with the :LazyExtras command. Plugins marked as optional will only be configured if they are installed.

Below you can find a list of included plugins and their default settings.

caution

You don't need to copy the default settings to your config. They are only shown here for reference.

nvim-lspconfig

opts = {
servers = {
dartls = {},
},
}

nvim-treesitter

opts = { ensure_installed = { "dart" } }

conform.nvim

opts = {
formatters = {
dart_format = {
args = { "format", "--line-length", "120" },
},
},
formatters_by_ft = {
dart = { "dart_format" },
},
}

neotest-dart

opts = nil

neotest (optional)

opts = {
adapters = {
["neotest-dart"] = {},
},
}