-
Hi, While using null-ls with prettierd some YAML files are truncating when formatting. I've attempted to send the YAML file directly to prettierd and could not replicate the issue. I've tried to enable debug and log what is happening, but I can't see any errors on the log, only weird thing is that it looks like the file is being truncated while being read. This also does not happen 100% of the times, sometimes requires a couple of saves for the issue to happen. This is the YAML file that is being truncated https://gist.github.com/caquino/d116736b87257423d4d141efb562304b And this is the log when the problem happens Is there anything else I can troubleshoot/debug? I've tried the following so far:
Any help will be appreciated! Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
I have came across that as well, never managed to replicate it though, just happens sometimes. |
Beta Was this translation helpful? Give feedback.
-
I often had this issue on large Markdown files with |
Beta Was this translation helpful? Give feedback.
@cerebrl sorry for not posting an update here before, let me explain what I learned and what I did.
When you add any import to
lazy.lua
, like for example the one for prettierlazyvim.plugins.extras.formatting.prettier
it is just a pre-configured plugin and some base defaults.The path I took was to not have
lazyvim.plugins.extras.formatting.prettier
and to manually add a plugin configuration onplugins/
folder.I've created a file under
plugins/null-ls.lua
with the following content: