vim.api.nvim_create_autocmd("BufWrite", { pattern = "*", callback = function () vim.cmd('lua vim.lsp.buf.format({ async = true })') end })