attempt to fix lsp

This commit is contained in:
Walter Jenkins 2025-09-07 12:37:51 -04:00
parent 11272260db
commit 553935a90b
6 changed files with 150 additions and 32 deletions

View file

@ -22,6 +22,11 @@ return {
args = { "fmt", "-stdin-filepath", "$FILENAME", "-stdout" },
stdin = true,
},
goimports = {
command = "goimports",
args = {},
stdin = true,
},
},
formatters_by_ft = {
templ = { "templ_fmt" }, -- ✅ only templ fmt for .templ
@ -35,7 +40,7 @@ return {
html = { "prettier" },
css = { "prettier" },
lua = { "stylua" },
go = { "gofmt" },
go = { "goimports", "gofmt" },
},
format_on_save = function(bufnr)
if vim.bo[bufnr].filetype == "templ" then