diff --git a/lua/lspconfig/server_configurations/html.lua b/lua/lspconfig/server_configurations/html.lua index e432e2c806..23707349ad 100644 --- a/lua/lspconfig/server_configurations/html.lua +++ b/lua/lspconfig/server_configurations/html.lua @@ -3,7 +3,7 @@ local util = require 'lspconfig.util' return { default_config = { cmd = { 'vscode-html-language-server', '--stdio' }, - filetypes = { 'html' }, + filetypes = { 'html', 'templ' }, root_dir = util.root_pattern('package.json', '.git'), single_file_support = true, settings = {}, diff --git a/lua/lspconfig/server_configurations/htmx.lua b/lua/lspconfig/server_configurations/htmx.lua index 4c8f8afea0..26611b7177 100644 --- a/lua/lspconfig/server_configurations/htmx.lua +++ b/lua/lspconfig/server_configurations/htmx.lua @@ -3,7 +3,7 @@ local util = require 'lspconfig.util' return { default_config = { cmd = { 'htmx-lsp' }, - filetypes = { 'html' }, + filetypes = { 'html', 'templ' }, single_file_support = true, root_dir = function(fname) return util.find_git_ancestor(fname) diff --git a/lua/lspconfig/server_configurations/tailwindcss.lua b/lua/lspconfig/server_configurations/tailwindcss.lua index b4f2469868..88c95ba8a5 100644 --- a/lua/lspconfig/server_configurations/tailwindcss.lua +++ b/lua/lspconfig/server_configurations/tailwindcss.lua @@ -59,11 +59,13 @@ return { -- mixed 'vue', 'svelte', + 'templ', }, init_options = { userLanguages = { eelixir = 'html-eex', eruby = 'erb', + templ = 'html', }, }, settings = {