Replies: 2 comments 1 reply
-
For more context, the problem with trying to use #518 to accomplish this instead (i.e. use a So, the following approach would incorrectly prevent sources = {
nls.builtins.formatting.prettier.with({
condition = function(utils)
return utils.root_has_file({
-- https://prettier.io/docs/en/configuration.html
'.prettierrc',
'.prettierrc.json',
'.prettierrc.yml',
'.prettierrc.yaml',
'.prettierrc.json5',
'.prettierrc.js',
'.prettierrc.cjs',
'.prettierrc.toml',
'prettier.config.js',
'prettier.config.cjs',
})
end,
})
} So -- I'm not sure if the core problem lies with |
Beta Was this translation helpful? Give feedback.
-
For now, my workaround is to toggle Thanks in advance for any help! 🙌 |
Beta Was this translation helpful? Give feedback.
-
I want to stop
prettier
from attaching to buffers if aprettier
config file is not present in the root dir.When I try to accomplish that with
only_local
like this, it doesn't work (prettier
still attaches):Is there any way to make the
only_local
approach work?Beta Was this translation helpful? Give feedback.
All reactions