Files
LazyVim-mirror/lua/lazyvim/plugins/extras/lang/docker.lua
Folke Lemaitre c460e97d2b style: format
2025-10-19 12:57:09 +02:00

52 lines
1017 B
Lua

return {
recommended = function()
return LazyVim.extras.wants({
ft = "dockerfile",
root = {
"Dockerfile",
"Containerfile",
"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 = {},
},
},
},
}