Skip to content

Commit

Permalink
feat(pack): add XML language pack
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed Jul 8, 2024
1 parent 5bfcfc4 commit 76b7573
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lua/astrocommunity/pack/xml/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# XML Language Pack

- Adds `xml` and `html` treesitter parsers
- Adds `lemminx` language server
25 changes: 25 additions & 0 deletions lua/astrocommunity/pack/xml/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
return {
{
"nvim-treesitter/nvim-treesitter",
optional = true,
opts = function(_, opts)
if opts.ensure_installed ~= "all" then
opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "xml", "html" })
end
end,
},
{
"williamboman/mason-lspconfig.nvim",
optional = true,
opts = function(_, opts)
opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "lemminx" })
end,
},
{
"WhoIsSethDaniel/mason-tool-installer.nvim",
optional = true,
opts = function(_, opts)
opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "lemminx" })
end,
},
}

0 comments on commit 76b7573

Please sign in to comment.