diff --git a/nvim/lua/plugins/lspconfig.lua b/nvim/lua/plugins/lspconfig.lua index dff702d..a65c834 100644 --- a/nvim/lua/plugins/lspconfig.lua +++ b/nvim/lua/plugins/lspconfig.lua @@ -31,21 +31,25 @@ local extra_server_opts = { languages = { lua = {{formatCommand = "lua-format -i", formatStdin = true}}, html = { - {formatCommand = "yarn run --silent prettier --parser html"} + formatCommand = "yarn run --silent prettier --stdin-filepath ${INPUT} --parser html", + formatStdin = true }, typescript = { { - formatCommand = "yarn run --silent prettier --parser typescript" + formatCommand = "yarn run --silent prettier --stdin-filepath ${INPUT} --parser typescript", + formatStdin = true } }, typescriptreact = { { - formatCommand = "yarn run --silent prettier --parser typescript" + formatCommand = "yarn run --silent prettier --stdin-filepath ${INPUT} --parser typescript", + formatStdin = true } }, markdown = { { - formatCommand = "yarn run --silent prettier --parser markdown" + formatCommand = "yarn run --silent prettier --stdin-filepath ${INPUT} --parser markdown", + formatStdin = true } } }