Refactor to use format_on_save instead of a

...custom autocmd
This commit is contained in:
Oliver Davies 2024-07-08 16:37:49 +01:00
parent 79afe5b876
commit 690e61ee5e

View file

@ -11,14 +11,9 @@ conform.setup {
terraform = { "terraform_fmt" },
yaml = { "yamlfmt" },
},
}
vim.api.nvim_create_autocmd("BufWritePre", {
callback = function(args)
conform.format {
bufnr = args.buf,
lsp_fallback = false,
quiet = true,
}
end,
})
format_on_save = {
lsp_fallback = false,
quiet = true,
},
}