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()
|
config = function()
|
||||||
local conform = require("conform")
|
local conform = require("conform")
|
||||||
conform.setup({
|
conform.setup({
|
||||||
formatters_by_ft = {
|
-- formatters_by_ft = {
|
||||||
|
formatters = {
|
||||||
javascript = { "prettier" },
|
javascript = { "prettier" },
|
||||||
typescript = { "prettier" },
|
typescript = { "prettier" },
|
||||||
javascriptreact = { "prettier" },
|
javascriptreact = { "prettier" },
|
||||||
|
|
@ -22,6 +23,7 @@ return {
|
||||||
python = { "isort", "black" },
|
python = { "isort", "black" },
|
||||||
sh = { "shfmt" },
|
sh = { "shfmt" },
|
||||||
},
|
},
|
||||||
|
stop_after_first = false,
|
||||||
format_on_save = {
|
format_on_save = {
|
||||||
lsp_fallback = true,
|
lsp_fallback = true,
|
||||||
async = false,
|
async = false,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue