DEV Community

Discussion on: My Neovim setup for React, TypeScript, Tailwind CSS, etc

Collapse
 
allefdouglasdev profile image
AllefDouglasDev

Are you able to use Tailwind autocomplete with twin.macro?

Collapse
 
hummingbird24 profile image
HummingBird24

That can be done by passing settings when setting up tailwind

local nvim_lsp = require "lspconfig"
nvim_lsp.tailwindcss.setup {
settings = {
tailwindCSS = {
experimental = {
classRegex = {
'tw([^])',
'tw="([^"]
)',
'tw={"([^"}])',
'tw\.\w+([^]
)',
'tw\(.?\)([^])',
},
},
},
},

})