diff options
Diffstat (limited to 'lua/conform/formatters')
-rw-r--r-- | lua/conform/formatters/prettier.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/conform/formatters/prettier.lua b/lua/conform/formatters/prettier.lua index e11eec8..0977748 100644 --- a/lua/conform/formatters/prettier.lua +++ b/lua/conform/formatters/prettier.lua @@ -1,3 +1,4 @@ +local fs = require("conform.fs") local util = require("conform.util") --- Helper function to parse options to into a parser if available @@ -49,7 +50,7 @@ return { -- qmd = "markdown", }, }, - command = util.from_node_modules("prettier"), + command = util.from_node_modules(fs.is_windows and "prettier.cmd" or "prettier"), args = function(self, ctx) return eval_parser(self, ctx) or { "--stdin-filepath", "$FILENAME" } end, |