Skip to content

Commit

Permalink
feat(pack): add html-css base pack (#260)
Browse files Browse the repository at this point in the history
* feat(pack): add html-css base pack

* feat(pack): remove html-css base pack from typescript packs
  • Loading branch information
owittek authored Jun 5, 2023
1 parent 7f8374b commit a6fb350
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lua/astrocommunity/pack/html-css/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# HTML and CSS Pack

This plugin pack is meant as a base that is being imported by more specific web development plugin packs. It does the following:

- Adds `html` and `css` Treesitter parsers
- Adds `html` and `css` language server
19 changes: 19 additions & 0 deletions lua/astrocommunity/pack/html-css/html-css.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
local utils = require "astronvim.utils"

return {
{ import = "astrocommunity.pack.json" },
{
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
if opts.ensure_installed ~= "all" then
opts.ensure_installed = utils.list_insert_unique(opts.ensure_installed, { "html", "css" })
end
end,
},
{
"williamboman/mason-lspconfig.nvim",
opts = function(_, opts)
opts.ensure_installed = utils.list_insert_unique(opts.ensure_installed, { "html", "cssls" })
end,
},
}

0 comments on commit a6fb350

Please sign in to comment.