fix formatter
This commit is contained in:
parent
1bd862e78b
commit
fea500cefb
7
init.lua
7
init.lua
|
|
@ -989,17 +989,16 @@ require('lazy').setup({
|
||||||
end,
|
end,
|
||||||
formatters_by_ft = {
|
formatters_by_ft = {
|
||||||
lua = { 'stylua' },
|
lua = { 'stylua' },
|
||||||
sql = { 'sql-formatter' },
|
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 = {
|
|
||||||
},
|
},
|
||||||
formatters = {
|
formatters = {
|
||||||
['sql-formatter'] = {
|
['sql_formatter'] = {
|
||||||
prepend_args = { '-l', 'postgresql' },
|
prepend_args = { '-l', 'postgresql', '-c', '{"useTabs": true}' },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue