add write to prettier command

This commit is contained in:
christianchiarulli 2021-07-11 11:34:44 -04:00
parent e827008120
commit c294f1fb02

View file

@ -261,7 +261,7 @@ O = {
}, },
formatter = { formatter = {
exe = "prettier", exe = "prettier",
args = { "--stdin-filepath", vim.api.nvim_buf_get_name(0), "--single-quote" }, args = { "--write", "--stdin-filepath", vim.api.nvim_buf_get_name(0), "--single-quote" },
stdin = false, stdin = false,
}, },
}, },
@ -276,7 +276,7 @@ O = {
}, },
formatter = { formatter = {
exe = "prettier", exe = "prettier",
args = { "--stdin-filepath", vim.api.nvim_buf_get_name(0), "--single-quote" }, args = { "--write", "--stdin-filepath", vim.api.nvim_buf_get_name(0), "--single-quote" },
stdin = false, stdin = false,
}, },
}, },