Skip to content

Commit 7194d72

Browse files
committed
Enable tailwindcss for rust files
1 parent bb00e88 commit 7194d72

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

after/lsp/tailwindcss.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ return {
33
settings = {
44
tailwindCSS = {
55
emmetCompletions = true,
6+
includeLanguages = {
7+
rust = "html",
8+
},
9+
experimental = { classRegex = { 'class: "(.*)"' } },
610
},
711
},
812
}

lua/plugins/language/support.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ return {
1010
local extra_filetypes = {
1111
html = { "templ" },
1212
emmet_language_server = { "templ" },
13-
tailwindcss = { "templ" },
13+
tailwindcss = { "templ", "rust" },
1414
}
1515

1616
vim

0 commit comments

Comments
 (0)