Skip to content

Commit

Permalink
feat(pack): added docker pack (#193)
Browse files Browse the repository at this point in the history
* feat: added docker pack

* feat: added docker pack

feat: added docker pack

* feat: added docker pack

* feat: added docker pack

* feat: added docker pack
  • Loading branch information
Souravpakhira authored May 9, 2023
1 parent 73caf11 commit f074d56
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lua/astrocommunity/pack/docker/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Docker Language Pack

This plugin pack does the following:

- Adds `dockerfile` Treesitter parser
- Adds `dockerfile-language-server` and `docker-compose-language-service` language servers
- Adds `hadolint` linter
24 changes: 24 additions & 0 deletions lua/astrocommunity/pack/docker/docker.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
local utils = require "astronvim.utils"
return {
{
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
if opts.ensure_installed ~= "all" then
opts.ensure_installed = utils.list_insert_unique(opts.ensure_installed, "dockerfile")
end
end,
},
{
"williamboman/mason-lspconfig.nvim",
opts = function(_, opts)
opts.ensure_installed = utils.list_insert_unique(
opts.ensure_installed,
{ "docker-compose-language-service", "dockerfile-language-server" }
)
end,
},
{
"jay-babu/mason-null-ls.nvim",
opts = function(_, opts) opts.ensure_installed = utils.list_insert_unique(opts.ensure_installed, "hadolint") end,
},
}

0 comments on commit f074d56

Please sign in to comment.