Skip to content

Commit

Permalink
feat: add templ filetype in html htmx tailwindcss (#2996)
Browse files Browse the repository at this point in the history
* feat(tailwindcss): add `templ` to filetypes

* feat(html): add `templ` to filetypes

* feat(htmx): add `templ` to filetypes
  • Loading branch information
mortezadadgar authored Feb 4, 2024
1 parent 9a62799 commit f989158
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lua/lspconfig/server_configurations/html.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {},
Expand Down
2 changes: 1 addition & 1 deletion lua/lspconfig/server_configurations/htmx.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions lua/lspconfig/server_configurations/tailwindcss.lua
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,13 @@ return {
-- mixed
'vue',
'svelte',
'templ',
},
init_options = {
userLanguages = {
eelixir = 'html-eex',
eruby = 'erb',
templ = 'html',
},
},
settings = {
Expand Down

0 comments on commit f989158

Please sign in to comment.