add sql-formatter

This commit is contained in:
jordanyono 2025-11-21 15:41:23 -05:00
parent 68a8adbc25
commit fb6a5bb614
1 changed files with 6 additions and 0 deletions

View File

@ -988,11 +988,17 @@ require('lazy').setup({
end, end,
formatters_by_ft = { formatters_by_ft = {
lua = { 'stylua' }, lua = { 'stylua' },
sql = { 'sql-formatter' },
-- Conform can also run multiple formatters sequentially -- Conform can also run multiple formatters sequentially
-- python = { "isort", "black" }, -- python = { "isort", "black" },
-- --
-- You can use 'stop_after_first' to run the first available formatter from the list -- You can use 'stop_after_first' to run the first available formatter from the list
-- javascript = { "prettierd", "prettier", stop_after_first = true }, -- javascript = { "prettierd", "prettier", stop_after_first = true },
--formatters = {
['sql-formatter'] = {
-- Change "postgresql" to "mysql", "mariadb", "bigquery", "sqlite", etc.
prepend_args = { '-l', 'postgresql' },
},
}, },
}, },
}, },