astro-nvim/lua/plugins/html-css.lua

37 lines
1 KiB
Lua

return {
{ import = "astrocommunity.pack.json" },
{
"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, { "html", "css" })
end
end,
},
{
"williamboman/mason-lspconfig.nvim",
optional = true,
opts = function(_, opts)
opts.ensure_installed =
require("astrocore").list_insert_unique(opts.ensure_installed, { "html", "cssls", "emmet_ls" })
end,
},
{
"AstroNvim/astrolsp",
opts = {
config = {
html = { init_options = { provideFormatter = false } },
cssls = { init_options = { provideFormatter = false } },
},
},
},
{
"WhoIsSethDaniel/mason-tool-installer.nvim",
optional = true,
opts = function(_, opts)
opts.ensure_installed =
require("astrocore").list_insert_unique(opts.ensure_installed, { "html-lsp", "css-lsp", "emmet-ls" })
end,
},
}