diff options
Diffstat (limited to 'lua')
-rw-r--r-- | lua/conform/formatters/prettierd.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/conform/formatters/prettierd.lua b/lua/conform/formatters/prettierd.lua index a030431..2dcd497 100644 --- a/lua/conform/formatters/prettierd.lua +++ b/lua/conform/formatters/prettierd.lua @@ -1,3 +1,4 @@ +local fs = require("conform.fs") local util = require("conform.util") ---@type conform.FileFormatterConfig return { @@ -5,7 +6,7 @@ return { url = "https://github.com/fsouza/prettierd", description = "prettier, as a daemon, for ludicrous formatting speed.", }, - command = util.from_node_modules("prettierd"), + command = util.from_node_modules(fs.is_windows and "prettierd.cmd" or "prettierd"), args = { "$FILENAME" }, range_args = function(self, ctx) local start_offset, end_offset = util.get_offsets_from_range(ctx.buf, ctx.range) |