Skip to content

Commit

Permalink
feat(htmx): add more filetypes (#3268)
Browse files Browse the repository at this point in the history
  • Loading branch information
ALameLlama authored Aug 15, 2024
1 parent ad32182 commit a6ccfcb
Showing 1 changed file with 48 additions and 1 deletion.
49 changes: 48 additions & 1 deletion lua/lspconfig/server_configurations/htmx.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,54 @@ local util = require 'lspconfig.util'
return {
default_config = {
cmd = { 'htmx-lsp' },
filetypes = { 'html', 'templ' },
filetypes = { -- filetypes copied and adjusted from tailwindcss-intellisense
-- html
'aspnetcorerazor',
'astro',
'astro-markdown',
'blade',
'clojure',
'django-html',
'htmldjango',
'edge',
'eelixir', -- vim ft
'elixir',
'ejs',
'erb',
'eruby', -- vim ft
'gohtml',
'gohtmltmpl',
'haml',
'handlebars',
'hbs',
'html',
'htmlangular',
'html-eex',
'heex',
'jade',
'leaf',
'liquid',
'markdown',
'mdx',
'mustache',
'njk',
'nunjucks',
'php',
'razor',
'slim',
'twig',
-- js
'javascript',
'javascriptreact',
'reason',
'rescript',
'typescript',
'typescriptreact',
-- mixed
'vue',
'svelte',
'templ',
},
single_file_support = true,
root_dir = function(fname)
return util.find_git_ancestor(fname)
Expand Down

0 comments on commit a6ccfcb

Please sign in to comment.