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:
parent
8f9c3a9b53
commit
5f4fb07631
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue