updating plugins

This commit is contained in:
2026-01-22 22:34:34 -05:00
parent 2f0ed73d53
commit 8803de9fac
12 changed files with 107 additions and 232 deletions

View File

@@ -9,9 +9,14 @@ return {
sqlfluff = {
command = "sqlfluff",
args = { "format", "--dialect", "postgres", "-" },
stdin = true, -- Ensure it uses stdin
stdin = true,
cwd = require("conform.util").root_file({ ".git" }),
},
xmllint = {
command = "xmllint",
args = { "--format", "-" },
stdin = true,
},
},
formatters_by_ft = {
javascript = { "prettier" },
@@ -27,10 +32,12 @@ return {
markdown = { "prettier" },
graphql = { "prettier" },
liquid = { "prettier" },
xml = { "xmllint" },
tex = { "latexindent" },
lua = { "stylua" },
python = { "isort", "black" },
dbml = { "dbml" }, -- DBML formatting
sql = { "sqlfluff" }, -- SQL formatting
java = { "google-java-format" },
},
format_on_save = function(bufnr)
-- Disable autoformat for certain filetypes