fix issue with templ files

This commit is contained in:
Walter Jenkins 2025-08-16 05:17:28 -05:00
parent ff42b77215
commit d3455ad8ee
5 changed files with 69 additions and 22 deletions

View file

@ -77,7 +77,7 @@ return {
analyses = { unusedparams = true },
directoryFilters = { '-node_modules' },
templ = {
format = true,
format = false, -- DISABLED for debugging
lint = true,
},
},
@ -94,11 +94,11 @@ return {
},
eslint = {},
html = { filetypes = { 'html', 'twig', 'hbs' } },
templ = {
cmd = { vim.fn.stdpath("data") .. "/mason/bin/templ", "lsp" },
filetypes = { "templ" },
root_dir = require("lspconfig").util.root_pattern("go.mod", ".git"),
},
-- templ = { -- DISABLED for debugging
-- cmd = { vim.fn.stdpath("data") .. "/mason/bin/templ", "lsp" },
-- filetypes = { "templ" },
-- root_dir = require("lspconfig").util.root_pattern("go.mod", ".git"),
-- },
lua_ls = {
settings = {
Lua = {