fixes condition to use local prettier (#678)

This commit is contained in:
Robin Kautz 2021-07-05 09:21:41 +02:00 committed by GitHub
parent b4a9023c9e
commit bd9296c4e8
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,7 +10,7 @@ M.setup = function()
formatStdin = true formatStdin = true
} }
if vim.fn.glob("node_modules/.bin/prettier") then if vim.fn.glob("node_modules/.bin/prettier") ~= "" then
prettier = { prettier = {
formatCommand = "./node_modules/.bin/prettier --stdin-filepath ${INPUT}", formatCommand = "./node_modules/.bin/prettier --stdin-filepath ${INPUT}",
formatStdin = true formatStdin = true