mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-13 19:04:36 +02:00
Merge e613ab7140
into 25abbf546d
This commit is contained in:
commit
da743d888a
1 changed files with 45 additions and 0 deletions
45
lua/lazyvim/plugins/extras/lang/dart.lua
Normal file
45
lua/lazyvim/plugins/extras/lang/dart.lua
Normal file
|
@ -0,0 +1,45 @@
|
|||
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"] = {},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue