return { recommended = function() return LazyVim.extras.wants({ ft = "dockerfile", root = { "Dockerfile", "docker-compose.yml", "compose.yml", "docker-compose.yaml", "compose.yaml" }, }) end, { "nvim-treesitter/nvim-treesitter", opts = { ensure_installed = { "dockerfile" } }, }, { "mason.nvim", opts = { ensure_installed = { "hadolint" } }, }, { "nvimtools/none-ls.nvim", optional = true, opts = function(_, opts) local nls = require("null-ls") opts.sources = vim.list_extend(opts.sources or {}, { nls.builtins.diagnostics.hadolint, }) end, }, { "mfussenegger/nvim-lint", optional = true, opts = { linters_by_ft = { dockerfile = { "hadolint" }, }, }, }, { "neovim/nvim-lspconfig", opts = { servers = { dockerls = {}, docker_compose_language_service = {}, }, }, }, }