Open gpayer opened 3 months ago
This is an efmls-configs issue, right?
No, you can simply replace it with
javascript = {
formatCanRange = true,
formatCommand = command,
formatStdin = true,
rootMarkers = {
'.prettierrc',
'.prettierrc.json',
'.prettierrc.js',
'.prettierrc.yml',
'.prettierrc.yaml',
'.prettierrc.json5',
'.prettierrc.mjs',
'.prettierrc.cjs',
'.prettierrc.toml',
'prettier.config.js',
'prettier.config.cjs',
'prettier.config.mjs',
},
}
Just use the correct call for prettier, i.e. fill command
with something that works.
But that part works! What does not work is that rootMarkers
are ignored, and the formatter is executed for every save on every javascript file.
I'm using the configuration for prettier from efmls-config for javascript and it seems to be enough that
prettier
is installed in node_modules for the formatter to run.The expected behaviour is that the prettier formatter should not run.
How to reproduce
javascript = { require('efmls-configs.formatters.prettier') }
test.js
for example