From bd9296c4e86b9223cce9ee3dd0d04c3f9e7cc370 Mon Sep 17 00:00:00 2001 From: Robin Kautz Date: Mon, 5 Jul 2021 09:21:41 +0200 Subject: [PATCH] fixes condition to use local prettier (#678) --- lua/lsp/ts-fmt-lint.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lsp/ts-fmt-lint.lua b/lua/lsp/ts-fmt-lint.lua index 1ebf2e20..36d4ca8a 100644 --- a/lua/lsp/ts-fmt-lint.lua +++ b/lua/lsp/ts-fmt-lint.lua @@ -10,7 +10,7 @@ M.setup = function() formatStdin = true } - if vim.fn.glob("node_modules/.bin/prettier") then + if vim.fn.glob("node_modules/.bin/prettier") ~= "" then prettier = { formatCommand = "./node_modules/.bin/prettier --stdin-filepath ${INPUT}", formatStdin = true