mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-21 02:55:09 +02:00
fixes condition to use local prettier (#678)
This commit is contained in:
parent
b4a9023c9e
commit
bd9296c4e8
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue