-
-
Notifications
You must be signed in to change notification settings - Fork 250
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(pack): add html-css base pack (#260)
* feat(pack): add html-css base pack * feat(pack): remove html-css base pack from typescript packs
- Loading branch information
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
}, | ||
} |