use global prettier for now

This commit is contained in:
Chris 2021-03-22 22:10:02 -04:00
parent 7c2e2f35ae
commit 42707d1b7e

View file

@ -15,7 +15,7 @@ local luaFormat = {
-- JavaScript/React/TypeScript
local prettier = {formatCommand = "./node_modules/.bin/prettier --stdin-filepath ${INPUT}", formatStdin = true}
local prettier_yaml = {formatCommand = "prettier --stdin-filepath ${INPUT}", formatStdin = true}
local prettier_global = {formatCommand = "prettier --stdin-filepath ${INPUT}", formatStdin = true}
local eslint = {
lintCommand = "./node_modules/.bin/eslint -f unix --stdin --stdin-filename ${INPUT}",
@ -65,10 +65,10 @@ require"lspconfig".efm.setup {
javascriptreact = {prettier},
javascript = {prettier},
sh = {shellcheck, shfmt},
html = {prettier},
css = {prettier},
json = {prettier},
yaml = {prettier_yaml},
html = {prettier_global},
css = {prettier_global},
json = {prettier_global},
yaml = {prettier_global},
-- markdown = {markdownPandocFormat, markdownlint},
markdown = {markdownPandocFormat},
}