This repository has been archived by the owner on Aug 12, 2023. It is now read-only.
Replies: 1 comment 3 replies
-
Theoretically Either way, you could write a wrapper to make this a bit easier: -- this part is theoretically unnecessary, but I'm keeping it as an example
local is_pnp = vim.fn.findfile(".pnp.cjs", ".")
local with_yarn_pnp = function(source)
return source.with({
dynamic_command = is_pnp and command_resolver.from_yarn_pnp() or nil,
})
end
null_ls.setup({
sources = {
with_yarn_pnp(null_ls.builtins.diagnostics.eslint),
}
}) |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How to properly setup Yarn2 PnP config? Just curious if I am doing it correctly or there are some better ways to do this? If feel this is verbose and a lot of repetition:
Beta Was this translation helpful? Give feedback.
All reactions