added dart support

This commit is contained in:
muneebusmani 2024-06-10 15:56:57 +05:00
parent d7c7548e09
commit b4f6f32791

View file

@ -0,0 +1,30 @@
-- requires dart/flutter to be installed
return {
recommended = {
ft = "dart",
root = { "pubspec.yaml" },
},
{
"akinsho/flutter-tools.nvim",
event = "VeryLazy",
dependencies = {
"nvim-lua/plenary.nvim",
"stevearc/dressing.nvim",
},
config = true,
},
{
"nvim-treesitter/nvim-treesitter",
opts = { ensure_installed = { "dart" } },
},
{
"nvimtools/none-ls.nvim",
optional = true,
opts = function(_, opts)
local nls = require("null-ls")
opts.sources = opts.sources or {}
table.insert(opts.sources, nls.builtins.formatting.dart_format)
end,
},
}