fix(nvim): Tailwind completion in html.twig files

Whilst `twig` files are enabled by default, `html.twig` files aren't so
these need to be added as an additional filetype for LSP to work.

For completion, `html.twig` also needs to be added as a custom user
language, mapping to the `html` type.

Fixes: #25
This commit is contained in:
Oliver Davies 2022-04-09 00:24:11 +01:00
parent 8f9c3a9b53
commit 5f4fb07631

View file

@ -93,7 +93,26 @@ local servers = {
},
tailwindcss = {
filetypes = { "html", "html.twig" },
filetypes = {
-- html
"html",
"html.twig",
"php",
"twig",
-- js
"javascript",
"typescript",
-- mixed
"vue",
},
init_options = {
userLanguages = {
["html.twig"] = "html",
},
},
},
-- tsserver = {