123456789101112131415161718192021222324252627282930313233343536 |
- local common = require("lsp.common-config")
- local opts = {
- capabilities = common.capabilities,
- flags = common.flags,
- on_attach = function(client, bufnr)
- common.disableFormat(client)
- common.keyAttach(bufnr)
- end,
- settings = {
- css = {
- validate = true,
- -- tailwindcss
- lint = {
- unknownAtRules = "ignore",
- },
- },
- less = {
- validate = true,
- lint = {
- unknownAtRules = "ignore",
- },
- },
- scss = {
- validate = true,
- lint = {
- unknownAtRules = "ignore",
- },
- },
- },
- }
- return {
- on_setup = function(server)
- server.setup(opts)
- end,
- }
|