-
Now that the Nothing I tried works. This is my current [language-server.vscode-json-language-server]
config = { provideFormatter = true, json = { keepLines = { enable = true } } }
[language-server.sql-language-server]
command = "sql-language-server"
args = ["up", "--method", "stdio"]
#
# THIS WAS A BLIND ATTEMPT
#
[language-server.tailwindcss-ls]
config = { userLanguages = { templ = "html", "*.templ" = "html" } }
[[language]]
name = 'templ'
scope = 'source.templ'
file-types = ['templ']
roots = ['go.work', 'go.mod']
comment-token = '//'
indent = { tab-width = 2, unit = " " }
language-servers = ['templ', 'vscode-html-language-server', 'tailwindcss-ls']
auto-format = true
[[language]]
name = "sql"
language-servers = ["sql-language-server"]
[[language]]
name = 'html'
auto-format = false # I want to format manually
language-servers = ["vscode-html-language-server", "tailwindcss-ls"]
[[language]]
name = 'css'
language-servers = ["vscode-css-language-server", "tailwindcss-ls"]
[[language]]
name = 'scss'
language-servers = ["vscode-css-language-server", "tailwindcss-ls"] |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 2 replies
-
Run |
Beta Was this translation helpful? Give feedback.
-
@kirawi
|
Beta Was this translation helpful? Give feedback.
-
@andradei Sorry to bump this so much later, but did you ever get this figured out? I am trying to implement the tailwind-LSP ontop of the Go LSP, as I'm using Gomponents, so the templ implementation may give me some clarity to get that working. |
Beta Was this translation helpful? Give feedback.
-
@Nintron27 Hi, I didn't get this working unfortunately. I moved back to neovim several months ago and only use helix occasionally, mainly to watch its development and move features I like to my neovim config. |
Beta Was this translation helpful? Give feedback.
-
I got this working by adding templ to userLanguages in the tailwindcss-ls config: [language-server.tailwindcss-ls]
config = { userLanguages = { templ = "html" } }
[[language]]
name = "templ"
auto-format = true
language-servers = [ "templ", "tailwindcss-ls" ] |
Beta Was this translation helpful? Give feedback.
I got this working by adding templ to userLanguages in the tailwindcss-ls config: