added flutter

This commit is contained in:
2025-10-01 15:04:37 +02:00
parent a247d72421
commit afa26b87b3
3 changed files with 62 additions and 74 deletions

11
lua/plugins/flutter.lua Normal file
View File

@@ -0,0 +1,11 @@
return {
-- Add the community repository of plugin specifications
"AstroNvim/astrocommunity",
{ import = "astrocommunity.pack.dart" },
-- Configure flutter-tools
{ "akinsho/flutter-tools.nvim",
opts = {
...
}
}
}

View File

@@ -1,24 +0,0 @@
if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
-- Customize None-ls sources
---@type LazySpec
return {
"nvimtools/none-ls.nvim",
opts = function(_, opts)
-- opts variable is the default configuration table for the setup function call
-- local null_ls = require "null-ls"
-- Check supported formatters and linters
-- https://github.com/nvimtools/none-ls.nvim/tree/main/lua/null-ls/builtins/formatting
-- https://github.com/nvimtools/none-ls.nvim/tree/main/lua/null-ls/builtins/diagnostics
-- Only insert new sources, do not replace the existing ones
-- (If you wish to replace, use `opts.sources = {}` instead of the `list_insert_unique` function)
opts.sources = require("astrocore").list_insert_unique(opts.sources, {
-- Set a formatter
-- null_ls.builtins.formatting.stylua,
-- null_ls.builtins.formatting.prettier,
})
end,
}