Parcourir la source

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

Chris il y a 4 ans
Parent
commit
018343d44a
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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