dotfiles/.config/nvim/lua/plugins/extras/lang/web/css.lua
Sergio Laín 64b076dfa8
🐛 fix(nvim): added csslsp to the extra
didnt know why i didnt have it...
2023-12-03 18:35:57 +01:00

45 lines
1.2 KiB
Lua

return {
{
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
if type(opts.ensure_installed) == "table" then
vim.list_extend(opts.ensure_installed, { "css", "scss" })
end
end,
},
{
"neovim/nvim-lspconfig",
opts = {
servers = {
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, { "cssmodules-language-server", "css-lsp" })
end,
},
}