diff options
| author | Robin Kautz <[email protected]> | 2021-07-05 09:21:41 +0200 | 
|---|---|---|
| committer | GitHub <[email protected]> | 2021-07-05 03:21:41 -0400 | 
| commit | bd9296c4e86b9223cce9ee3dd0d04c3f9e7cc370 (patch) | |
| tree | dc986d08576e6e0591bc509b8117c84168039f7b /lua | |
| parent | b4a9023c9e531ad021cf9da7e701350f489aba45 (diff) | |
fixes condition to use local prettier (#678)
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lsp/ts-fmt-lint.lua | 2 | 
1 files changed, 1 insertions, 1 deletions
| 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 | 
