feat(conform): add more formatters
This commit is contained in:
parent
0628c3e2ec
commit
23fe78acec
1 changed files with 32 additions and 31 deletions
|
|
@ -6,8 +6,7 @@ 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 +21,8 @@ return {
|
||||||
lua = { "stylua" },
|
lua = { "stylua" },
|
||||||
python = { "isort", "black" },
|
python = { "isort", "black" },
|
||||||
sh = { "shfmt" },
|
sh = { "shfmt" },
|
||||||
|
terraform = { "tflint" },
|
||||||
|
hcl = { "hclfmt" },
|
||||||
},
|
},
|
||||||
stop_after_first = false,
|
stop_after_first = false,
|
||||||
format_on_save = {
|
format_on_save = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue