Mason now ensures stylua, sql-formatter, and mdformat on startup, and pip-installs mdformat-gfm into mdformat's venv so GFM tables snap. Also includes incidental theme switch to github_dark and lazy-lock bump. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
25 lines
558 B
Lua
25 lines
558 B
Lua
local options = {
|
|
formatters_by_ft = {
|
|
lua = { "stylua" },
|
|
sql = { "sql-formatter" },
|
|
json = { "jq" },
|
|
markdown = { "mdformat" },
|
|
-- css = { "prettier" },
|
|
-- html = { "prettier" },
|
|
},
|
|
-- no format_on_save (manual-only)
|
|
formatters = {
|
|
["sql-formatter"] = {
|
|
command = vim.fn.stdpath("data") .. "/mason/bin/sql-formatter",
|
|
args = { "-l", "postgresql" },
|
|
stdin = true,
|
|
},
|
|
mdformat = {
|
|
command = vim.fn.stdpath("data") .. "/mason/bin/mdformat",
|
|
stdin = true,
|
|
},
|
|
},
|
|
}
|
|
|
|
return options
|