fix(conform): replace formatters_by_ft with new 9.x version
This commit is contained in:
parent
bd999072f8
commit
cec95d7a0c
1 changed files with 31 additions and 29 deletions
|
|
@ -6,7 +6,8 @@ return {
|
|||
config = function()
|
||||
local conform = require("conform")
|
||||
conform.setup({
|
||||
formatters_by_ft = {
|
||||
-- formatters_by_ft = {
|
||||
formatters = {
|
||||
javascript = { "prettier" },
|
||||
typescript = { "prettier" },
|
||||
javascriptreact = { "prettier" },
|
||||
|
|
@ -22,6 +23,7 @@ return {
|
|||
python = { "isort", "black" },
|
||||
sh = { "shfmt" },
|
||||
},
|
||||
stop_after_first = false,
|
||||
format_on_save = {
|
||||
lsp_fallback = true,
|
||||
async = false,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue