Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions lua/conform/formatters/postgres-language-server.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
local util = require("conform.util")
---@type conform.FileFormatterConfig
return {
meta = {
url = "https://pg-language-server.com/latest/features/formatting",
description = "The language server provides SQL formatting that produces consistent, readable code. Built on Postgres' own parser, the formatter ensures 100% syntax compatibility with your SQL.",
},
stdin = false,
command = "postgres-language-server",
args = { "format", "--write", "$FILENAME" },
cwd = util.root_file({ "postgres-language-server.jsonc" }),
}
Loading