]> git.rmz.io Git - dotfiles.git/blobdiff - nvim/lua/plugins/lang/docker.lua
lazyvim: absorb all langs
[dotfiles.git] / nvim / lua / plugins / lang / docker.lua
diff --git a/nvim/lua/plugins/lang/docker.lua b/nvim/lua/plugins/lang/docker.lua
new file mode 100644 (file)
index 0000000..e375fa4
--- /dev/null
@@ -0,0 +1,38 @@
+return {
+  {
+    "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 = {},
+      },
+    },
+  },
+}