Last active
December 18, 2024 22:46
-
-
Save zealot128/cf8b0ad74df5a9ab3e734b9e6acc41e8 to your computer and use it in GitHub Desktop.
Neovim Tailwindcss with custom files (Ruby, ViewComponents, Phlex etc.)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local lspconfig = require('lspconfig') | |
-- https://github.com/tailwindlabs/tailwindcss-intellisense/issues/737 | |
lspconfig.tailwindcss.setup { | |
--on_attach = on_attach, | |
--flags = lsp_flags, | |
filetypes = { "aspnetcorerazor", "astro", "astro-markdown", "blade", "clojure", "django-html", "htmldjango", "edge", "eelixir", "elixir", "ejs", "erb", "eruby", "gohtml", "haml", "handlebars", "hbs", "html", "html-eex", "heex", "jade", "leaf", "liquid", "markdown", "mdx", "mustache", "njk", "nunjucks", "php", "razor", "slim", "twig", "css", "less", "postcss", "sass", "scss", "stylus", "sugarss", "javascript", "javascriptreact", "reason", "rescript", "typescript", "typescriptreact", "vue", "svelte", "ruby" }, | |
init_options = { | |
userLanguages = { | |
ruby = "php", | |
}, | |
}, | |
settings = { | |
tailwindCSS = { | |
experimental = { | |
classRegex = { | |
[[class= "([^"]*)]], | |
[[class: "([^"]*)]], | |
[[class= '([^"]*)]], | |
[[class: '([^"]*)]], | |
'~H""".*class="([^"]*)".*"""', | |
'~F""".*class="([^"]*)".*"""', | |
}, | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment