1234567891011121314151617181920212223 |
- -- https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#tailwindcss
- local opts = {
- settings = {
- tailwindCSS = {
- classAttributes = { "class", "className", "classList", "ngClass" },
- lint = {
- cssConflict = "warning",
- invalidApply = "error",
- invalidConfigPath = "error",
- invalidScreen = "error",
- invalidTailwindDirective = "error",
- invalidVariant = "error",
- recommendedVariantOrder = "warning",
- },
- validate = true,
- },
- },
- }
- return {
- on_setup = function(server)
- server.setup(opts)
- end,
- }
|