mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
added dart support
This commit is contained in:
parent
d7c7548e09
commit
b4f6f32791
1 changed files with 30 additions and 0 deletions
30
lua/lazyvim/plugins/extras/lang/flutter.lua
Normal file
30
lua/lazyvim/plugins/extras/lang/flutter.lua
Normal 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,
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue