Repository navigation
Replies: 2 comments 1 reply
|
Just some more information. I was looking through the source code trying to find the problem. It seems that However, it looks like a syntax error can cause a generator to be failed, which doesn't seem right: |
1 reply
|
Ok, I've tracked the problem down to I noticed that autoformat would stop working, but ONLY if the lua file was a module being monitored by lazy.nvim. Whatever lazy is doing to monitor the files it causes the autocmd created by none-ls to be cleared out after the file is changed. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I've got none-ls configured to format lua files on save using stylua. I've also got it configured to format other types of files (go, python, typescript) and those work just fine.
For lua files, it works once or twice, and then I start seeing this in the logs:
If I run
:lua vim.lsp.buf.format(), it formats just fine. This doesn't happen with any other file type.I am unable to reproduce with the minimal config, but I'm not sure what is the problem in my own config. Where can I go from here to find out?
All reactions