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
- Options
- Full Spec
opts = {
servers = {
dartls = {},
},
}
{
"neovim/nvim-lspconfig",
opts = {
servers = {
dartls = {},
},
},
}
nvim-treesitter
- Options
- Full Spec
opts = { ensure_installed = { "dart" } }
{
"nvim-treesitter/nvim-treesitter",
opts = { ensure_installed = { "dart" } },
}
conform.nvim
- Options
- Full Spec
opts = {
formatters = {
dart_format = {
args = { "format", "--line-length", "120" },
},
},
formatters_by_ft = {
dart = { "dart_format" },
},
}
{
"stevearc/conform.nvim",
opts = {
formatters = {
dart_format = {
args = { "format", "--line-length", "120" },
},
},
formatters_by_ft = {
dart = { "dart_format" },
},
},
}
neotest-dart
- Options
- Full Spec
opts = nil
{
"sidlatau/neotest-dart",
}
neotest (optional)
- Options
- Full Spec
opts = {
adapters = {
["neotest-dart"] = {},
},
}
{
"nvim-neotest/neotest",
optional = true,
dependencies = {
"sidlatau/neotest-dart",
},
opts = {
adapters = {
["neotest-dart"] = {},
},
},
}