dotfiles/.config/nvim/lua/plugins/extras/lang/web/html-css.lua
2024-02-22 11:56:38 +01:00

72 lines
1.7 KiB
Lua

return {
{
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
vim.list_extend(opts.ensure_installed, {
"html",
"css",
"scss",
})
end,
},
{
"neovim/nvim-lspconfig",
opts = {
servers = {
emmet_language_server = {},
html = {},
cssmodules_ls = {},
cssls = {
lint = {
compatibleVendorPrefixes = "ignore",
vendorPrefix = "ignore",
unknownVendorSpecificProperties = "ignore",
-- unknownProperties = "ignore", -- duplicate with stylelint
duplicateProperties = "warning",
emptyRules = "warning",
importStatement = "warning",
zeroUnits = "warning",
fontFaceProperties = "warning",
hexColorLength = "warning",
argumentsInColorFunction = "warning",
unknownAtRules = "warning",
ieHack = "warning",
propertyIgnoredDueToDisplay = "warning",
},
},
},
},
},
{
"williamboman/mason.nvim",
opts = function(_, opts)
opts.ensure_installed = opts.ensure_installed or {}
vim.list_extend(opts.ensure_installed, {
"emmet-language-server",
"html-lsp",
"cssmodules-language-server",
"css-lsp",
"htmlhint",
})
end,
},
{
"mfussenegger/nvim-lint",
opts = function(_, opts)
opts.linters_by_ft.html = opts.linters_by_ft.html or {}
table.insert(opts.linters_by_ft.html, "htmlhint")
return opts
end,
},
{
"luckasRanarison/nvim-devdocs",
optional = true,
ensure_installed = {
"html",
"css",
"sass",
},
},
}