mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-13 19:04:36 +02:00
45 lines
782 B
Lua
45 lines
782 B
Lua
return {
|
|
recommended = function()
|
|
return LazyVim.extras.wants({
|
|
ft = "dart",
|
|
root = { "pubspec.yaml" },
|
|
})
|
|
end,
|
|
{
|
|
"neovim/nvim-lspconfig",
|
|
opts = {
|
|
servers = {
|
|
dartls = {},
|
|
},
|
|
},
|
|
},
|
|
{
|
|
"nvim-treesitter/nvim-treesitter",
|
|
opts = { ensure_installed = { "dart" } },
|
|
},
|
|
{
|
|
"stevearc/conform.nvim",
|
|
opts = {
|
|
formatters = {
|
|
dart_format = {
|
|
args = { "format", "--line-length", "120" },
|
|
},
|
|
},
|
|
formatters_by_ft = {
|
|
dart = { "dart_format" },
|
|
},
|
|
},
|
|
},
|
|
{
|
|
"nvim-neotest/neotest",
|
|
optional = true,
|
|
dependencies = {
|
|
"sidlatau/neotest-dart",
|
|
},
|
|
opts = {
|
|
adapters = {
|
|
["neotest-dart"] = {},
|
|
},
|
|
},
|
|
},
|
|
}
|