Skip to content

Instantly share code, notes, and snippets.

@crierr
crierr / prettier-custom.lua
Created April 13, 2024 16:10
Configuration for conform.nvim to use local installed version of prettier, when it is installed by Yarn PnP
-- If prettier is installed with Yarn PnP, run below command to generate bin-prettier.js.
-- `yarn dlx @yarnpkg/sdks base`
-- @see https://yarnpkg.com/getting-started/editor-sdks
local util = require("conform.util")
local fs = require("conform.fs")
return {
"stevearc/conform.nvim",
opts = {
formatters = {