Browse Source

Merge branch 'master' of github.com:ChristianChiarulli/LunarVim

Chris 4 years ago
parent
commit
018343d44a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lua/lsp/ts-fmt-lint.lua

+ 1 - 1
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