nvchad/lua/configs/conform.lua
Paul Trowbridge 59e9fe7923 merge laptop branch features into customize
- Add detailed SQL formatter config (pg_format, sqlfluff with args)
- Add Mason plugin for installing formatters
- Add conform keybinding (g+w) for manual formatting
- Add gitsigns blame keybinding (<leader>gb)
- Add comments to organize plugin sections
- Keep vscode_dark theme and generic home paths

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-18 00:00:17 -05:00

26 lines
612 B
Lua

local options = {
formatters_by_ft = {
lua = { "stylua" },
sql = { "pg_format", "sqlfluff" }, -- pg_format first, fallback to sqlfluff
json = { "jq" },
markdown = { "mdformat" },
-- css = { "prettier" },
-- html = { "prettier" },
},
-- no format_on_save (manual-only)
formatters = {
pg_format = {
prepend_args = {
"--keyword-case", "2", -- 1 = UPPER, 2 = lower
"--function-case", "2", -- 2 = lower
"--spaces", "4",
},
},
sqlfluff = {
args = { "fix", "--force", "--dialect", "postgres", "-" },
},
},
}
return options